Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Job sets an environment variable to the session on the remote host with the name "SCHEDULER_RETURN_VALUES" which is available for the script or command to be executed on the remote machine. The value (the name of the temporary file) for this environment variable will be generated at runtime. After the execution of the script or command the jobs reads the return values from that temporary file on the remote host, returns them to the Jobscheduler for further processing and deletes the temporary file afterwards.

...

  • format: 
    • <command> <placeholder1> = <placeholder2>
  • default value: 
    • export %1s=%2s
  • description: 
    • The command to set an environment variable. The values for placeholders 1 and 2 will be set implicitly at the start of the job execution. The placeholders are mandatory.

...

  • format: 
    • <command> <placeholder>
  • default value: 
    • cat %s
  • description:
    • The command to read the temporary file where the return values are written to through the script/command execution of the SSH job. The placeholder will be substituted during the job execution. 

...

  • format: 
    • <command> <placeholder>
  • default value: 
    • rm %s
  • description:
    • The command to delete the temporary file with the return values. The placeholder will be substituted during the job execution. 

Configuration

The SOSSSHJob2JSAdapterJSch job will replace the existing SOSSSHJob2JSAdapter Job  Job in future releases. 

To use the return-values-feature configure a SSH job with JOE and choose SOSSSHJob2JSAdapterJSch

Example of the parameter configuration for a Windows Client 

...