You can define a UNIX (UNIX_JOB) job to schedule workload to run on a UNIX computer. The job can run a script or execute a command.
Note: To run these jobs, your system requires CA WA Agent for UNIX or Linux.
Required Statements
To define a UNIX job, you must specify the following statements:
Note: Use the SCRIPTNAME statement to run shell scripts and the CMDNAME statement to run binary files. If you specify the CMDNAME statement, you must also specify the USER statement.
Optional Statements
You can specify the following optional statements for a UNIX job:
Example: Run a Command
This example runs the data command under the user1 user ID. The job runs on the UNIX_NY agent.
AGENT UNIX_NY CMDNAME /mfg/test/data USER user1
Note: When running a command, you must define the user ID the command runs under.
Example: Run a Script
This example invokes the C shell to run the sort script on the UNIX_LA agent:
AGENT UNIX_LA SCRIPTNAME /mfg/test/sort SHELL /bin/csh
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|