Copy from Remote Windows to Local IBM i via UCMD Manager
Copy from Remote Windows to Local IBM i via Universal Command Manager for IBM i
The following figures illustrate copying a file from a remote Windows system to a local file.
STRUCM CMD('ucopy infile') HOST(dallas) USERID(joe) PWD(password) SOTFILE(localfile)
UCOPY, which the UCMD Server invokes on system dallas, retrieves data from the file named infile. It sends data to the UCMD Manager running under IBM i using standard output. The UCMD Manager, in turn, receives input via stdin and writes to file specified by SOTFILE, localfile. The file is copied via UCMD as a text file, since the default transfer mode is text.
STRUCM CMD('ucopy c:\ntinput.file') HOST(nthost) USERID(joe) PWD(akkSdiq) SOTFILE(library/outputfile) SOTMBR(member)
UCOPY runs on the remote host and retrieves data from c:\ntinput.file
. UCOPY output is redirected back to the local host and written to the stdout of STRUCM. STRUCM output is, in turn, directed to the local file SOTFILE and, optionally, SOTMBR. The file is copied via UCMD as a text file, since the default transfer mode for standard files is text.
The command ucopy is installed as part of UCMD Server on the remote system.
Command Line Options
The command line options used are:
Option | Description |
---|---|
Remote command 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 nthost. | |
Remote user ID with which to execute the command. | |
Password for the user ID. | |
Location to which the stdout file data is written. |
Components
Universal Command Manager for IBM i
Universal Command Server for Windows