/sys$common/syshlp/helplib.hlb
RCP, Examples

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

    1.$ RCP/LOG NYX:STATS.BNT []

      Copies file stats.bnt from remote UNIX system nyx from under
      its home directory to a local file of the same name in the
      current directory. The /LOG qualifier causes information for
      the copy to be displayed. This command assumes the user has an
      entry in the authentication file on host nyx.

    2.$ RCP HIAIR1:AIRFRS.TXT [FLTAT.STATS]FARES1.TXT

      Copies file AIRFRS.TXT from remote OpenVMS system HIAIR1,
      from under its home directory to a local file of a different
      name (FARES1.TXT) in the specified directory. This command
      assumes the user has an entry in the authentication file on
      host HIAIR1.

    3.$ RCP /PRESERVE HIAIR1:[FARES.SUMMER]FARES_SU.TXT ":DKA300:[]"

      Copies file FARES_SU.TXT from directory [FARES.SUMMER] on
      remote OpenVMS system HIAIR1 to the specified device and
      directory on the local system. The new file maintains the same
      name as the original. The copy preserves the source file's
      protection mode and modification date.

      Use quotation marks (" ") for specifying the device and
      directory on the destination.

    4.$ RCP /USER=MILLER /PASS="AirOut" ":SYS$LOGIN:PILOTS.LIS" FALCON:

      Copies file PILOTS.LIS from the login directory of user MILLER
      on the local system to the user's login directory on a remote
      UNIX system. The user specifies the user name and password
      for access to the UNIX system (the password is specified in
      quotation marks to preserve the mixed uppercase letters).

      Use quotation marks (" ") for specifying the SYS$LOGIN device
      and file name on the destination.

    5.$ RCP /RECURSIVE ":DKA300:[MILES...]" "nyx:/usr/tmp"

      Copies all files and any subdirectories under the local
      directory [MILES] to a remote UNIX host's destination
      directory. All the files in the subdirectories are copied
      as well, creating subdirectories on the remote host, as
      appropriate. The directory hierarchy is preserved on the UNIX
      host by default. This command assumes the user has an entry in
      the authentication file on host nyx.

    6.$ RCP /LOG /RECURSIVE [MILES...] BOSTON:[FRFL...]

      Copies the complete local subdirectory tree ([MILES...] and
      all subdirectories) to the destination directory on remote
      OpenVMS host BOSTON, while preserving the directory hierarchy
      and logging each file copy. This command assumes the user has
      an entry in the authentication file on host BOSTON.

    7.$ RCP /LOG /RECURSIVE [MILES...] BOSTON:[FRFL]

      Same as Example 6, except that all files in the local directory
      tree are copied directly to the destination directory itself.
      The command does not preserve the directory hierarchy of
      [MILES...] in [FRFL] on host BOSTON. In other words, the
      command does not create new subdirectories in BOSTON:[FRFL];
      it copies all the files in [MILES] and all its subdirectories
      to directory [FRFL].

    8.$ RCP /USER=VAUGHN /PASSWORD=MYLES /TRUNCATE=6 STATS.TXT FRAM:TISTICS

      Copies the local file STATS.TXT to a remote user's login
      directory. Note the truncation of the remote user name. A user
      name and password are necessary if no entries for the user are
      present in the remote host's authentication files.

    9.$ RCP BOSTON:NAMES.LIS FRAM:ROSTER.LIS

      Copies file NAMES.LIS from remote host BOSTON to remote
      host FRAM (naming the file ROSTER.LIS). Assumes appropriate
      entries for the user have been made in each remote host's
      authentication files.

    10$ RCP "MILLER@BOSTON:SYS$DIR:T2.TXT" "nelson@nyx:/usr/nelson/T2.TXT"

      Copies file T2 from remote OpenVMS system BOSTON in the
      directory pointed to by the logical name SYS$DIR to remote
      UNIX system nyx in the specified directory. Different user
      names are used on the two remote systems. Entries in the remote
      host's authentication files must be set up properly because the
      passwords are not being passed.

    11$ RCP /USER=ROSS /PASSWORD=LC12LC BOS:CLIENT.LIS "BEX:/usr"

      Copies file CLIENT.LIS from OpenVMS host BOS to UNIX host bex.
      The user has a proxy account on the UNIX host. The specified
      authentication information allows access to the account for
      ROSS on host BOS.
  Close     HLB-list     TLB-list     Help  

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