Top
Systemwalker Operation Manager  Reference Guide
FUJITSU Software

14.3.4 exec Statement

Synopsis

exec  program name [argument ...]

Description

This statement specifies the program or batch file [Windows]/shell script name [UNIX] and arguments to be executed.

Operands

program name

Specify the name of a program to be executed. Batch file name [Windows]/shell script name [UNIX] can also be specified.

arguments...

When an argument is passed to the program to be executed, at least one space should be put between the program name and the argument.

By separating arguments by space, multiple arguments can be set.

When spaces are included in an argument, enclose that argument in quotations ("" or "").

If the arguments are specified as &n, the arguments specified in the qsub command are passed to the program. The n in this case is the nth argument specified in the qsub command.

When executing a network job

When submitting a network job, specify the program name and arguments in the following format:

mjsrjob.exe [-r number of retries] (*)
*:

Describe only the file name of mjsrjob.exe (full path is not necessary).

-r number of retries

When a network abnormality occurs while requesting a network job execution (executing connect, send or execute commands), a retry is performed. The number of retries can be specified with any number from 1 through 20.

While the execute command is being processed, if a network error occurs in the status that awaits the completion of a job after job execution request has been issued, no retry will be performed.

When submitting a job, if retry processing is specified in the [Additional Information] sheet in the [Edit Job Information/Submit] dialog box/window of the [Systemwalker Operation Manager] window or the retry option is specified in the qsub command, these specifications take priority.

Point

The return value of mjsrjob.exe is the equivalent of the return value from an execution file specified by the execute command in the network job control file.

Examples

[Windows]

exec appl01.exe work1 &1 &2 &3

appl01.exe: Executable program name

[UNIX]

exec script1 work1 &1 &2 &3

script1: Shell script name

work1: 1st argument

&1: 1st argument specified by qsub command

&2: 2nd argument specified by qsub command

&3: 3rd argument specified by qsub command