Copy From Local Windows to Remote UNIX
Copy From Local Windows to Remote UNIX via Universal Command Manager for Windows
The following figure illustrates the copying of a file from a local Windows system to a remote UNIX 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.
ucmd -cmd " /opt/universal/bin/ucopy -output /tmp/unixoutputfile" -host unixhost -encryptedfile unixid.file < c:\temp\ntinputfile
The stdin of the ucmd manager on the local host is redirected to the stdout of the remote host and written to /tmp/unixoutputfile
. 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 |
---|---|
unixoutputfile | Path and filename of output file |
ntinputfile | Path and file name of input file |
unixhost | IP address of sending 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 |
---|---|
Remote command ucopy file to execute. The ucopy program copies the files specified on the command line to its stdout. | |
Directs the command to a computer with a host name of unixhost. | |
File from which to read encrypted command options. |