Connect:Direct for UNIX Run Task Statement

The run task statement invokes a UNIX command shell to execute one or more UNIX commands within a Process. The Process waits until the UNIX commands finish running before executing the next step in the Process.

Note: Do not specify programs in the run task statement that cannot complete without user intervention, because they will not be completed.

Process statements that follow the run task statement do not execute until the command completes. The run task execution results in a return code which is the exit code for the program executed using run task.

The following is the Connect:Direct® for UNIX Run Task statement format. Refer to IBM Connect:Direct for UNIX Process Parameters for more information.

Label Statement Parameters
stepname run task (pgm=program-name)
    pnode | snode
    sysopts="unix command [;unix command [;unix command...]]"