Specifying a Single Operation
Note:
The following information applies to step Creating an OS Command Job in Creating an OS Command Job .
Enter the full command in the Command field. For example:
/bin/df -k /private
Note the following points about specifying a single operation:
-
You can use shell commands as part of your command. The default shell for the platform is used, which is /bin/sh for Linux and cmd/c for Windows.
ls -la /tmp > /tmp/foobar.out
-
If you need to execute two consecutive shell commands, you must invoke the shell in the Command field and the commands themselves in the OS Script field. You would specify this as follows in the Command field:
sleep 3; ls
-
The job status depends on the exit code returned by the command. If the command execution returns 0, the job returns a status of Succeeded. If it returns any other value, it returns a job status of Failed.