The documentation of the
...
JobSchedulerSSHJob job is available in the scheduler installation sub-folder ./jobs.
The SOSSSHJob2JSAdapter JobSchedulerSSHJob job knows some parameter to handle the stderr and the exit code. These are
...
If any output to stderr has been created or the exit code is unequal 0 then the job usually throws an exception. Whenever the job throws an exception then its task ends with the exit code 1. If the job is started by an order and an exception is thrown then the order goes to the error node of the job chain. Should this value false be specified, then it prevents an exception is thrown, the task has the exit code of the command that is being executed on the SSH server and an order goes to the next node of the job chain.
The SOSSSHJob2JSAdapter JobSchedulerSSHJob job creates the parameters
...
The exit code of the process is the value of this parameter. The exit code is zero if the process ended without any error.
If you use the SOSSSHJob2JSAdapter JobSchedulerSSHJob job in a job chain then you can use these parameters in a next job of the job chain to handle the result.
...