Previous Topic: RECIPIENTTYPE Statement—Specify the Recipient Type for the SAP SpoolNext Topic: REMOTE_TARGET Statement—Specify Remote Target for a Job


REMOTE_COMMAND Statement—Specify Command to Execute Remotely

The REMOTE_COMMAND statement specifies the command to execute remotely on a target system.

Supported Job Type

This statement is required for the Remote Execution job type.

Syntax

REMOTE_COMMAND command
command

Specifies the command to execute remotely.

Limits: 1024 characters

Notes:

Example: Specify a Command to Execute Remotely

This example executes the 'sleep 200' command for a remote execution job with a UNIX endpoint system.

AGENT REMOTETEST
REMOTE_COMMAND ‘sleep 200’
REMOTE_TARGET UNIXEndpoint
EXITCODE 0-1 SUCCESS