VMS Help
TCPIP Services, Remote Commands, RCP

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

    The RCP (Remote Copy) command copies a file between your local
    host and a remote internet host. You can also use RCP to copy a
    file between two remote internet hosts. You specify the source
    and destination file names, each in the format appropriate for
    the source or destination system. For copying files from one
    remote host to another:

    o  If you do not have proxy login accounts (or authentication
       file entries) for both the source and remote hosts, you
       must have the same user name and password on both source
       and destination hosts. Use the /PASSWORD qualifier and,
       if necessary, the /USER_NAME qualifier, to specify the
       authentication information for the remote hosts.

    o  If you have a proxy login account (or authentication file
       entry) on one of the remote hosts only, use the /PASSWORD
       qualifier and, if necessary, the /USER_NAME qualifier to
       specify the authentication information for the other host.

    By using the /RECURSIVE qualifier with the RCP command, you can
    recursively copy every file and subdirectory in a directory.

    You can also use the COPY/RCP command to copy files across the
    network using TCP/IP. For more information on this command, enter
    HELP COPY/RCP at the DCL prompt.

    Note that you can also use FTP to transfer files.

  1 - Examples

    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 must be enclosed in quotation marks, also):

       $ RCP /PASSWORD="IMusici" "haven:/symph/nine" []<Return>

    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]" <Return>

    3. With this 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]" <Return>

    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/*" <Return>

    5. In the following example, user BEST uses the DCL COPY/RCP
       command to transfer the complete subdirectory tree /symph from
       remote UNIX host haven to remote OpenVMS host FRAM, which both
       require specification of a password. (With the RCP command,
       when transferring 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/*" <Return>
       To: FRAM"VAUGHN MYLES"::[classic.compositions]*"
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.