For Qshell or spawned path command processing, the REXEC server, by default returns normal output on the first connection and error output on the second connection.
(The REXEC stdin, stdout, and stderr streams are mapped to file descriptors 0, 1, and 2. The QIBM_USE_DESCRIPTOR_STDIO environment variable is set to Y.) These options allow you to redirect input and output.
Choosing the Qshell command processor sets these environment variables:
Spawned child processes are batch jobs or prestart jobs. They cannot do interactive I/O. See WebSphere® Development Studio: ILE C/C++ Programmer's Guide for complete details on this support.