Copy from Local Windows to Remote IBM i via UCMD Manager

Copy from Local Windows to Remote IBM i

The following figure illustrates the copying of a file initiated by Windows which copies a file from Windows to the first member of a file on IBM i.

ucmd -host sysName -userid userId -pwd password 
-cmd "strucp tofile(mylib/readme)" < D:\tmp\README.txt


Using redirected stdin, UCMD Manager, running under Windows sends, transfers data to a UCMD Server running on the remote IBM i system, sysName. The UCMD Server on sysName invokes UCOPY to transfer the data to mylib/readme. mylib/readme file member *FIRST is used since TOMBR was not specified.

The command STRUCP is installed as part of UCMD Server on the IBM i system.

The file is copied as a text file since the default transfer mode is text.

Command Line Options

The command line options used in this example are:

Option

Description

-cmd

Remote command to execute on the IBM i.

-host

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

-userid

IBM i user ID with which to execute the command.

-pwd

Password for the user ID.

Components

Universal Command Manager for Windows

Universal Command Server for IBM i

Universal Copy