To monitor and process requests from REXEC client users, start REXEC server jobs.
REXEC server jobs start when you run the STRTCP command and set the REXEC AUTOSTART parameter to *YES. You can also start REXEC server jobs by running the STRTCPSVR command with a SERVER parameter of *REXEC or *ALL. These jobs run in the QSYSWRK subsystem. Their purpose is monitoring and processing requests from REXEC client users. The format for the names of these jobs is QTRXCnnnnn, where nnnnn is a 5-digit decimal number.
To work with jobs in the QSYSWRK subsystem, including REXEC server jobs, specify the following command:
WRKSBSJOB SBS(QSYSWRK)
If you choose to have commands processed by the Qshell command interpreter, start Qshell by using the spawn() application programming interface (API) to create a child job.
If you choose to have commands interpreted as spawn path names, the REXEC server treats command strings as path names and passes them to the spawn() API. Spawned child processes are batch jobs or prestart jobs. Shell scripts are allowed for the child process. If you specify a shell script, the appropriate shell interpreter program is called. The shell script must be a text file and must contain this format on the first line of the file: #!interpreter_path <options>.