You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

FEATURE AVAILABILITY STARTING FROM RELEASE 1.9

DRAFT

Mode Of Operation

The SOSSSHJob2JSAdapterJcraft uses the JCraft Framework for SSH connections and adds the use of return values to the already existing functionality of the SOSSSHJob2JSAdapter class.

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. 

After the execution of the script or command the jobs reads the return values from a temporary created file on the remote host, returns them to the Jobscheduler for further processing and deletes the temporary file afterwards.

New Parameters

preCommand

  • format: <command> <placeholder1> = <placeholder2>
  • default value: export %1s=%2s
  • description:
    The default value uses the linux bash syntax to set an environment variable. The values for placeholders 1 and 2 will be set implicitly through the job execution. There is no need to set those values directly, but those placeholders are mandatory.
    This parameter has to be set only if you work on systems using a different syntax than the linux bash syntax. Please choose the format of the command and placeholders according to the operating system on the remote host.

postCommandRead

  • format: <command> <placeholder>
  • default value: cat %s
  • description:

postCommandDelete

  • format: <command> <placeholder>
  • default value: rm %s
  • description:

Configuration

Example

 

  • No labels