[0m


RCP(1C)             UNIX Programmer's Manual		  RCP(1C)



[1mNAME
     [0mrcp, rcp0 - remote file copy

[1mSYNOPSIS
     rcp [0mfile1 file2
     [1mrcp [0m[[1m-r[0m] [[1m-p[0m] file ... directory

[1mDESCRIPTION
     [0m_r_c_p copies files between machines.  Each _f_i_l_e or _d_i_r_e_c_t_o_r_y
     argument is either a remote file name of the form
     ``rhost:path'', or a local file name (containing no `:'
     characters, or a `/' before any `:'s.)

     If the [1m-r [0mis specified and any of the source files are
     directories, _r_c_p copies each subtree rooted at that name; in
     this case the destination must be a directory.

     The [1m-p [0moption causes _r_c_p to attempt to preserve (duplicate)
     in its copies the modified and accessed times of the source
     files.

     If _p_a_t_h is not a full path name, it is interpreted relative
     to your login directory on _r_h_o_s_t.	A _p_a_t_h on a remote host
     may be quoted (using \, ", or ') so that the metacharacters
     are interpreted remotely.

     _r_c_p does not prompt for passwords; your current local user
     name must exist on _r_h_o_s_t and allow remote command execution
     via _r_s_h(1C).

     _r_c_p handles third party copies, where neither source nor
     target files are on the current machine.  Hostnames may also
     take the form ``rname@rhost'' to use _r_n_a_m_e rather than the
     current user name on the remote host.

     Please note:  _r_c_p is meant to copy from one host to another;
     if by some chance you try to copy a file on top of itself,
     you will end up with a severely corrupted file (for example,
     if you executed the following command from host george:
     `george% rcp testfile george:/usr/me/testfile').  Remember
     where you are at all times (putting your hostname in your
     prompt helps with this)!

[1mSEE ALSO
     [0mftp(1C), rsh(1C), rlogin(1C)

[1mBUGS
     [0mDoesn't detect all cases where the target of a copy might be
     a file in cases where only a directory should be legal.

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



Printed 27/11/91    Revision 1.9 of 03/12/88			1






RCP(1C)             UNIX Programmer's Manual		  RCP(1C)



     _r_c_p doesn't copy ownership, mode, and timestamps to the new
     files.

     _r_c_p requires that the source host have permission to execute
     commands on the remote host when doing third-party copies.

     If you forget to quote metacharacters intended for the
     remote host you get an incomprehesible error message.

     _r_c_p will create `holes' in the output file for completely
     zero disc blocks, this saves considerable disc space on R140
     systems. Some NFS fileservers (eg those running 4.2BSD) have
     a bug which cause them to add a zero byte to files copied in
     this manner.  This can be avoided by using _r_c_p_0 which is
     identical to _r_c_p except that it copies the file byte for
     byte.

     _r_c_p does not support the host.user syntax for destination
     addressing.




































Printed 27/11/91    Revision 1.9 of 03/12/88			2



[0m