Redirect Standard Out and Standard Error to Windows
Redirect Standard Out and Standard Error to Windows
The following example illustrates how to redirect the standard output and error of the 'DIR' command to a file on the initiating system.
ucmd -cmd "dir" -host dallas -userid joe -pwd password > output.file 2>&1
The command dir is sent to a remote system named dallas for execution. The standard output and standard error of the dir command are written back to the UCMD process and redirected to standard out file output.file. The process will authenticate and run under the authority of userid joe.
If the remote system is a UNIX system, change the command dir to ls.
Command Line Options
The command line options used in this example are:
Components
Universal Command Manager for Windows