

C-LANG Statements › REMOTE_COMMAND Statement—Specify Command to Execute Remotely
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:
- The command can contain any characters, including delimiters.
- The statement can include arguments and multiple commands that are separated by an O/S delimiter.
- If the command contains delimiters, enclose it in single quotes.
- Double any single quotes that are included in an operand with delimiters.
- If the statement exceeds one line, the last plus or minus sign on a line is taken as a continuation character.
- Multiple REMOTE_COMMAND statements are allowed.
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
Copyright © 2013 CA Technologies.
All rights reserved.
 
|
|