/sys$common/syshlp/HELPLIB.HLB  —  COPY  /RCP
    Copies files from host to host over a TCP/IP connection by
    invoking the RCP utility.

    Format

      COPY/RCP  input-filespec output-filespec

1  –  Parameters

 input-filespec

    Specifies the name of an existing file (the source file) to be
    copied.

 output-filespec

    Specifies the name of the output file (the destination file) into
    which the input file is copied.

2  –  Qualifiers

2.1    /AUTHENTICATE

    Specifies that Kerberos authentication should be used for
    acquiring access to the remote node.

2.2    /LOG

    Displays a message in SYS$OUTPUT when a file is transferred.

2.3    /PRESERVE

    Preserves the file protection codes.

2.4    /RECURSIVE

    Requests a subdirectory copy operation.

2.5    /TRUNCATE

       /TRUNCATE=USERNAME

    Truncates the user name to 8 characters.

2.6    /USERNAME

       /USERNAME=username

    Optional qualifier that specifies the remote user name. The
    standard operation is to log in to a remote system using the same
    user name as at the local terminal. The command supports quoted
    parameters in the /USERNAME value.

3  –  Example

  $ COPY/RCP local_file.c remotehst4"Smith smpw"::rem_file.c

      This example copies local_file.c to rem_file.c on the remote
      host remotehst4 over a TCP/IP connection.
Close Help