/
Simple File Copy to the Manager - Windows and UNIX
Simple File Copy to the Manager - Windows and UNIX
Simple File Copy to the Manager
This example copies, in text mode, one file to another. This is the simplest form of data transfer.
1 /wiki/spaces/UA73/pages/3769053 _echo=yes
2 /wiki/spaces/UA73/pages/3769053 _halton=warn
3 /wiki/spaces/UA73/pages/3769059 unix=sol9 user=top098 pwd=p100m
4 /wiki/spaces/UA73/pages/3778454 unix=/opt/app/data
5 /wiki/spaces/UA73/pages/3778428 type=text
6 /wiki/spaces/UA73/pages/3778455 unix=data10.txt
7 /wiki/spaces/UA73/pages/3769057
For this UNIX and Windows example, the following is a line-by-line explanation:
- Line 1 turns on command echo, which results in each command being written prior to processing.
- Line 2 sets error condition value on which script process halts. Any error equal to or greater than 4 halts script processing. A value of 4 effectively means halt on any error or warning.
- Line 3 opens a session between the local UDM Manager and a remote UDM Server running on host sol9. The host sol9 is given the a logical name of unix. The /wiki/spaces/UA73/pages/3769059 command also provides user credentials for the UDM Server to verify and, if success verified, specifies the user ID with which the UDM Server executes.
- Line 4 changes the current directory of the UDM server unix running on host sol9.
- Line 5 changes the transfer mode type from binary (the default) to text. Text mode transfers will translate between code pages and process the end-of-line characters.
- Line 6 is the /wiki/spaces/UA73/pages/3778455 command that actually moves the data between systems. It copies file data10.txt on server unix to the local UDM Manager as data10.txt.
- Line 7 executes the /wiki/spaces/UA73/pages/3769057 command, which closes all sessions and exits UDM with the highest exit code set.
Components
, multiple selections available,
Related content
Simple File Copy to the Manager - Windows and UNIX
Simple File Copy to the Manager - Windows and UNIX
More like this
Simple File Copy to the Server - Windows and UNIX
Simple File Copy to the Server - Windows and UNIX
More like this
Simple File Copy to the Server - Windows and UNIX
Simple File Copy to the Server - Windows and UNIX
More like this
Copy a File to an Existing IBM i File
Copy a File to an Existing IBM i File
More like this
Copy a File to an Existing IBM i File
Copy a File to an Existing IBM i File
More like this
Universal Data Mover Manager for UNIX
Universal Data Mover Manager for UNIX
More like this