For RemoteExec, the standard output of the executed program is written to a local PC file. For RemoteExecNoWait, the standard output of the executed program is written to a remote file on the server.
For RemoteRun, the following three conditions are tested:
If there are no errors, and there is an output (SPF) file or the "Production Reporting: End of Run" message in the OUT file, the report ran successfully.
When running a report using RemoteRunNoWait, the outcome is unknown. To obtain the outcome, use the RemoteGetResults method. This time, there are three possible states: success, failure, and still running. RemoteGetResults checks for the "Production Reporting: End of Run" message in the OUT file. If that message exists, the execution is complete and successful. Otherwise, it checks for the ERR file. If this file exists and is Production Reporting ActiveX Control is not empty, then the execution failed. The rsqr script generates an "Production Reporting Remote:Done" message when the report is complete. If the OUT file exists but the "done" message has not been seen, it is assumed that the program is still running. The message REMOTE_ERR_RUNNING is returned.