5.1.13 Specifying a shell for running job definition scripts and checking formats
- Organization of this subsection
(1) Specifying a shell
In UNIX, you can specify a shell to be used to execute a job definition script on the first line of the job definition script file. The following shows how to specify a shell:
#!executable-file-path
The command shown below executes a job definition script by using the shell with the executable file path specified on the first line of the job definition script (if the executable file path is omitted, /bin/sh is used):
$ job-definition-script-file-path
The command shown below that specifies the path of the adshexec command at the beginning executes a job definition script on the path of the adshexec command, regardless of the information specified on the first line of the job definition script:
$ path-of-adshexec-command job-definition-script-file-path
(2) Checking the lexical format
When the adshexec command is used to execute a job definition script file, the command checks the lexical format used in the job definition script file and then executes the file. Note that the command does not check the format of an external file that is read by a . (dot) command within the job definition script file.
If you want to only check the lexical format without executing the job definition script, execute the adshexec command with the -c option specified.