Shell

Execute a shell or batch script.
Note: The steps in this plug-in wait until the command is complete. Therefore, run commands that complete or run in the background. If you run commands that continue indefinitely, the step and the process that contains the step wait indefinitely.

Also, the commands for each step share the same stdout and stdin streams. If you run a command or script that runs other commands, each of those commands use the same stdout and stdin stream as the first command or script. The step waits for all of these commands to complete.

Table 1. Input properties for the Shell step
Name Type Description Required
Directory Offset String The working directory to use when executing this command. This is relative to current working directory. Yes
Interpreter String Optionally specify the interpreter to use to evaluate the command. If left blank the following platform-specific behavior will be used: Command Line will use .bat file interpreter on Windows and .com file interpreter on VMS. On other systems it will use the shell specified by 'air/shell' agent variable if present. *nix systems may override this by having the Command Line starts with a #! sequence. No
Shell Script String Enter the script code to execute. Yes
Daemon Boolean Check this option to run the command in the background while permitting the step to complete immediately. The output will not be captured if running as a daemon. No
Output File String Only set this value if Daemon is checked. Enter the path of the file to which the command output is directed. Leave blank to discard the output. The output will not be captured if an output file is specified. No

Feedback