The following examples show how to use RCP commands to copy files
from one host to another host:
1. User BEST has the account best on the UNIX host haven. User
BEST's password for that account is IMusici, which must be
enclosed in quotation marks because it is mixed case. The
following command copies the file /symph/nine on haven to
the local directory on the OpenVMS system (the UNIX file
specification also must be enclosed in quotation marks):
$ RCP /PASSWORD="IMusici" "haven:/symph/nine"
2. User BEST has a proxy account on the remote UNIX host musicx.
The following command copies the file /symph/pastoral from
host musicx to the directory [SYMPH6] on the device DKA300: on
BEST's local OpenVMS system:
$ RCP "musicx:/symph/pastoral" ":DKA300:[SYMPH6]"
3. With the following command, user BEST copies each subtree
rooted at the /symph directory to the directory [SYMPHS] on
the device DKA300: on BEST's local OpenVMS system.
$ RCP/RECURSIVE "haven:/symph" ":DKA300:[SYMPHS]"
4. With the following command, user BEST copies all files
from the directory /symphonies on remote host musicx to the
directory /symph on remote host haven:
$ RCP /PASSWORD="IMusici" "musicx:/symphonies/*" "haven:/symph/*"
5. In the following example, user BEST uses the DCL command
COPY/RCP to transfer the complete subdirectory tree /symph
from remote UNIX host haven to remote OpenVMS host FRAM.
Both hosts require a password. (When using the RCP command
to transfer files between two remote hosts, you need a proxy
account or an entry in the authentication file for at least
one of the two remote hosts.) User BEST has an account under
the same name on both hosts.
$ COPY/RCP haven"BEST IMusici"::"/symph/*"
To: FRAM"VAUGHN MYLES"::[classic.compositions]*"