Copy from Local UNIX to Remote Windows

Copy from Local UNIX to Remote Windows via Universal Command Manager for UNIX

The following figure illustrates the copying of a file from a local UNIX system to a remote Windows system.

Although the command is shown on two lines, it should be entered as one line at the command prompt.

ucmd -cmd 'ucopy > remotefile' -host dallas
     -userid joe -pwd password < localfile


The ucopy command receives its stdin file from ucmd. The standard in of UCMD is redirected from localfile.

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 is text.

Command Line Options

The command line options used in this example are:

Option

Description

-cmd

Remote command ucopy > remotefile to execute. The ucopy program copies its standard in to its standard out.

-host

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

-userid

Remote user ID with which to execute the command.

-pwd

Password for the user ID.

Components

Universal Command Manager for UNIX

Universal Copy