Download Universal Command 3.2.0 User Guide

Transcript
UCMD Manager for UNIX Examples
Examples
A.4.2 File Copy Example 2
This example copies a local file to a remote Windows system.
Figure A.41, below, illustrates the command. 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
Figure A.41 UCMD Manager for UNIX - File Copy Example 2
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
ucmd-user-3204
Description
-cmd
Specifies the 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
Specifies the remote user ID with which to execute the command.
-pwd
Specifies the password for the user ID.
Confidential & Proprietary
331