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.


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:

Option

Description

-cmd

Remote command to execute.

-host

Directs the command to a computer with a host name of dallas.

-userid

Remote user ID with which to execute the command.

-pwd

Password for the user ID.

Components

Universal Command Manager for Windows