Copy from Remote UNIX to Local Windows Using the UNIX cat Command
Copy from Remote UNIX to Local Windows Using the UNIX cat Command via Universal Command Manager for Windows
The following figure illustrates copying of file from a remote UNIX system to a local Windows system using the UNIX cat command.
Although the command is shown on two lines, it should be entered as one line at the command prompt.
ucmd -cmd "cat ~/file" -host dallas -userid joe -pwd password -comment "copy ~/file from dallas" > localfile
The stdout of the cat command on the remote host is redirected back to the local host and written to the stdout of ucmd, which is then redirected to the local file localfile.
Command Line Options
The command line options used in this example are:
Option | Description |
---|---|
Remote command - "cat ~/file" - to execute. The cat program copies the files specified on the command line to its stdout. | |
Directs the command to a computer with a host name of dallas. | |
Remote user ID with which to execute the command. | |
Password for the user ID. | |
Description of the process executed by Universal Command. |
The file is copied as a text file, since the default transfer mode is text.
Components
Universal Command Manager for UNIX