Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rcp(1) — HP-UX 5.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cp(1)

ftp(1)

remsh(1)

remshd(1M)

rcmd(3)

hosts(5)

hosts.equiv(5)

RCP(1)

     RCP(1)                   Series 300 Only                   RCP(1)

     NAME
          rcp - remote file copy

     SYNOPSIS
          rcp [ -r ] file ... target

     HP-UX COMPATIBILITY
          Level:    HP-UX/NON-STANDARD

          Origin:   UCB

          Remarks:  Implemented on the Series 300 only.

     DESCRIPTION
          File is copied to target. File and target cannot be the same
          file.  (Note: Take care when using sh(1) metacharacters.) If
          target is a directory, then one or more files are copied  to
          that  directory.   If  two  or more files are specified (not
          counting target), then  target  must  be  a  directory.   If
          target  is  a  file, its former contents are overwritten and
          its mode, owner, and group are unchanged.  If target is  not
          a  file,  a  new  file is created which has the same mode as
          file except that the sticky bit is not set  unless  you  are
          super-user;  the  owner and group of target are those of the
          user.  The last modification time of target (and last access
          time,  if  target did not exist) and the last access time of
          file are set to the time the copy was made.  If target is  a
          link to a file, all links remain and the file is changed.

          Each file is either a remote file name of the  form  ``host-
          name:path'',  or  a  local  file name (with a `/' before any
          `:').  Host-name can be either an official name or an  alias
          as  listed  in  /etc/hosts; see hosts(5).  Host-names of the
          form ``rhost.ruser'' specify using  ruser  rather  than  the
          current user name on the remote host.  If path is not a full
          path name, it  is  interpreted  relative  to  ruser's  login
          directory  on  rhost.  A path on a remote host may be quoted
          (using  \,  ",  or  ')  so  that  the   metacharacters   are
          interpreted remotely.

          If -r is specified and any of  the  files  are  directories,
          then  rcp  copies  each subtree rooted at that name; in this
          case target must be a directory.

          Rcp does not prompt for passwords; the  current  local  user
          name  or  any  user  name  specified via rname must exist on
          rhost and allow remote command execution  via  remsh(1)  and
          rcmd(3).  Remshd(1M) must be active on the remote host.

     SEE ALSO
          cp(1),  ftp(1),  remsh(1),  remshd(1M),  rcmd(3),  hosts(5),
          hosts.equiv(5).

     Hewlett-Packard               - 1 -             (printed 7/16/86)

     RCP(1)                   Series 300 Only                   RCP(1)

     WARNINGS
          Rcp is confused by any output generated  by  commands  in  a
          .login, .profile, or .cshrc file on the remote host.

     Hewlett-Packard               - 2 -             (printed 7/16/86)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026