Unix Jobs
This subtype of the JOBS object defines Unix operating system processing steps to be carried out in a target system. Like all other job objects (JOBS), Unix jobs can run independently or they can be added to a group (JOBG) or to a workflow. For details on the integration between the Automation Engine and Unix please refer to AE and UNIX.
Defining Unix Jobs
A Unix Job definition is made up of the following pages:
- Standard pages that are always available, no matter what type of object you are defining:
- Additional pages that are always available for executable objects:
- The Unix page described here.
Start Parameters Section
-
Job Type
Select how the UNIX commands are executed:
- Shell Script - Select this option to:
- Generate a job.
- Transfer it to the target system.
Execute it in the shell script.
The UNIX JCL script from the Process page is also executed.
Note: If you select this option, the JCL contained in the Process page is transferred to the UNIX agent and executed.
- Command - If you select his option the Command field is also displayed, where you can enter a command or command sequence that is passed to the UNIX command line.
The selected shell is called and executes the commands.
You can combine several commands separated by semicolons.
Note: If you select this option, no job is generated/transferred to the target system. The JCL contained in the Process page is ignored; the statements made in the agents are processed instead.
- Shell Script - Select this option to:
-
Shell
Select the UNIX shell, under which the job runs.
If you do not select a shell, the default shell from the password file is applied.
Shells are listed with and without leading - characters. The shells with - characters are login shells. A login shell is one whose first character of argument zero is a -, or one started with the --login option.
See for instance: http://linux.die.net/man/1/bash.
Your administrator maintains the available shells in the UC_SHELL_UNIX - Defining UNIX Shells variable.
-
Shell Options
You can specify further shell options. The syntax depends on the selected shell.
Job Report Section
For information on the Job Report section, see Job Reports.
See also: