Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor corrections to text

...

 

The SOSSSHJob2JSAdapter job knows some parameter to handle the stderr and the exit codeA number of parameters are available for handling stderr and exit code in the JobSchedulerSSHJob job. These are:

  • ignore_stderr (default=false)

The job checks if any output to stderr has been created by a command that is being executed on the SSH server and reports this as an error. Should the value true be specified for this parameter then output to stderr will not be reported as an error by the JobScheduler.

...

This parameter configures one or more exit codes which will not be treated as errors. Multiple exit codes can be defined comma seperated separated or using ranges. Examples: 255 2,3,4,100 4,50-60,210-220

  • raise_exception_on_error (default=true)

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.

...

ls _unknown_folder_; exit 5;

This commmand command has a stderr = ls: _unknown_folder_: No such file or directory and the exit code 5.

...