Copy from Remote UNIX to Local Windows via Universal Command Manager for Windows
The following figure illustrates the copying of a file from a remote UNIX system to a local Windows system. Although the command is shown on two lines, it should be entered on one line at the command prompt. If it is coded in a script, the Windows continuation character of ¬ must be used.
Panel |
---|
ucmd -cmd " /opt/universal/bin/ucopy unixinputfile"
-host unixhost -encryptedfile unixid.file > c:\temp\ntoutputfile |
The standard out of the
ucopy command on the remote host is redirected back to the local host and written to
c:\temp\ntoutput.file
. The command
ucopy is installed as part of Universal Command Server on the remote system.
The file is copied as a text file, since the default transfer mode for standard files is text.
Parameters
The following parameters should be changed to match your information:
Parameter | Description |
---|
ntoutputfile | Path and filename of output file |
unixinputfile | Path and file name of input file |
unixhost | IP address of remote UNIX server |
unixid.file | File on the Windows server used to house the authentication parameters for the UNIX server |
Command Line Options
The command line options used in this example are:
Option | Description |
---|
-cmd | Remote command ucopy file to execute. The ucopy program copies the files specified on the command line to its STDOUT. |
-host | Directs the command to a computer with a host name of unixhost. |
-encryptedfile | File from which to read encrypted command options. |
Components
Universal Command Manager for Windows Universal Copy