The following table describes the Shell switch parameters, which affect Control-M/Agent processing:
Parameter |
Description |
---|---|
-x |
Enables Control-M/Agent to submit the script as is. The script runs under the specified shell and prints commands and related arguments as they are executed. NOTE: In the output file, the command arguments contain the value of the variable and not the variable name. Each command is prefixed by the + sign, which s later used during an On statement post-processing phase of the jobs output to distinguish between the different commands and their output. |
-v |
Enables Control-M/Agent to parse the original script to a temporary script. The script commands are appended with an identifying string. This temporary script is then executed, where the -v switch causes the shell to print each command before its output. The added identifying string is later used during an On statement post-processing phase of the job's output to distinguish between commands and their output. |
n |
Indicates that the script should be executed as is and no commands will be included in the job’s output. As a result no On-statement processing is possible. |
For more information about the different flags, see Shell script type switch examples.
NOTE: Arguments specified after the shell name are ignored by Control-M/Agent with the following exception: -x is supported when running a script under the Bourne shell and bash or Korn shell and restricted Korn shell. If -x is specified as an argument after the shell name, it overrides any option set in the CTM_PRM_SH_FLAGS or CTM_PRM_KSH_FLAGS parameters.
Parent Topic |