COMMAND - UCMD Manager configuration option
Description
The COMMAND option specifies the command to execute on the remote computer.
Usage
Method | Syntax | IBM i | UNIX | Windows | z/OS |
Command Line, Short Form | -c command |
|
|
| |
Command Line, Long Form | -cmd command |
|
|
| |
Environment Variable | UCMDCMD=command |
|
|
| |
Configuration File Keyword | n/a | ||||
STRUCM Parameter | CMD(command) |
|
Values
command is the command to be executed.
It can be any command that is valid for command line execution on the remote computer's operating system.
IBM i | If the command contains spaces, it must be enclosed in single ( ' ) quotation marks. |
---|---|
Windows | If the command contains spaces, it must be enclosed in double ( " ) quotation marks. |
UNIX | If the command contains spaces, it must be enclosed in single ( ' ) or double ( " ) quotation marks. |
z/OS | If the command contains spaces, it must be enclosed in single ( ' ) or double ( " ) quotation marks. |
z/OS
command can be continued onto multiple lines. No continuation character is required. command is read starting at the first enclosing quotation mark to the ending enclosing quotation mark.
If an enclosing character is part of the command, use two consecutive characters to produce one in the command.
The remote command shell processes command meta-characters (for example, redirection < and > and pipes | ) as normal on the remote computer.