Shell and Shell Options
Specify the shell under which a Unix Job runs in the agent-specific page of the Job object. This page also allows you to specify options to call the selected shell. If no shell is defined, the default shell from the passwd file is used. For more information, see Unix Jobs.
Shells selected in the UNIX page are maintained in the variable UC_SHELL_UNIX - Defining UNIX Shells of system client 0. The following shells are available by default:
- bash
- csh
- ksh
- sh
- tcsh
You can add additional shells in the variable UC_SHELL_UNIX. Additionally, a shell-specific script line must be inserted in the Include TRAILER.UNIX. The following format should be used:
##UC4[Shell]Shell specific command
Determining the Shell Path
- If a path string has been defined in the configuration file (section STARTCMD, parameter shell_pfad), this path is used.
Format Path String: <Path name1>[:<Path name2>]...
Format Path name: /<dir1>[/<dir2>]... - If the parameter shell_pfad has not been specified, the environment variable PATH is read and used.
- If no PATH environment variable is available, the /bin directory is used.
The shell file name is composed of the retrieved shell path and the selected shell (Host Attributes tab) and checked for the availability of the right to execute. If this file must not be executed or cannot be found, an information message is output. The user's default shell which has been defined in the passwd file is then used. If no shell has been specified in the passwd file, the Bourne shell from /bin/sh is used.
Determining Shell Options
If shell options have been specified in the Host Attributes tab, these are used.
Shell options may be defined in the configuration file (section STARTCMD, variables Bourne_Shell_Opt, Korn_Shell_Opt and C_Shell_Opt)
Note: As of version 11 the options will be left empty, if you do not select one of the shells mentioned above and also do not enter a value in the options field.
See also: