FTP Jobs: Remote Command Settings
The Remote Command runs commands by using SSH on remote UNIX systems.
Important Considerations
-
The Remote Command is only supported for SSH to UNIX operating systems. For SSH, you must use SFTP Connection objects.
-
SSH connections always open via the port that is configured for the SFTP Connection object.
-
When Jobs with multiple Remote Command commands run, a single logged in session is created for all commands per connection used.
-
For security reasons, Remote Command commands are disabled by default, but they are always listed in the FTP Jobs' Commands list. This means that if remote commands are disabled and a job with a remote command is executed, the job will fail. If remote commands are enabled, then the job executes.
For information on enabling remote commands for an FTP Agent, see Enabling Remote Command Execution.
To Run a Remote Command
-
In From/To select the Connection objects that connect to the source and destination hosts.
-
Drag the Delete command from the left pane and drop it onto the editor in the middle.
-
In Remote Command do the following:
-
In Connection, select a Connection object. This list displays the connection objects that you have selected at the top of the editor for the source and target hosts.
-
Enter a command in the Remote Command field. This field allows Automation Engine variables with the following Format: &<name>#.
-
Optionally enter an expected return code number to determine success in the Return code must be for success field.
-
-
In the Options section, if you do not want the Job to abort if this command fails, deselect Abort job on command failure.
-
Optionally add a description of the command under Description. The text you enter here is not written to the Job report. To write a message to the Job report, use an Echo command. For more information, see FTP Jobs: Echo Command Settings.
See also: