|
|
BSD 4.3tahoe
NETCP(1) UNIX Programmer's Manual NETCP(1)
NAME
netcp - remote copy of files through the net
SYNOPSIS
netcp [ -l login ] [ -p password ] [ -f ] [ -n ] [ -q ]
fromfile tofile
DESCRIPTION
_N_e_t_c_p copies files between machines and is similar to _c_p(1).
At least one of _f_r_o_m_f_i_l_e and _t_o_f_i_l_e must be remote. The -l,
-p, -f, -q, and -n behave exactly as in _n_e_t(1).
_F_r_o_m_f_i_l_e and _t_o_f_i_l_e follow these conventions:
1. A simple filename is assumed to be local and from the
current directory.
2. A filename preceded by a machine designator (see below)
is a reference to a file on the specified remote
machine. If a full pathname is not given, it is assumed
to be from the login directory.
Examples:
grades.p file in the current directory on local
machine
C:junk file in your login directory on C
/usr/lib/pq file on local machine
C:comp/c2.c file in a subdirectory on C machine
When files are being ``fetched'', that is, the _f_r_o_m_f_i_l_e is
remote and the _t_o_f_i_l_e is local, the _t_o_f_i_l_e is created zero-
length mode 600. For security reasons, when the ``fetched''
file's contents arrive at the local machine, the file must
still be zero-length and mode 0600. No confirmation is sent
to the user that the file has been ``fetched''; a non-zero
file length indicates completion.
_N_e_t_c_p executes the _n_e_t(1) command.
SEE ALSO
net(1), netrm(1), netq(1), netlog(1), netlpr(1), netmail(1),
netlogin(1), cp(1), mail(1)
AUTHOR
Eric Schmidt
BUGS
The second filename may not be defaulted to a directory name
Printed 7/26/87 4/29/85 1
NETCP(1) UNIX Programmer's Manual NETCP(1)
as in _c_p(1), it must be given explicitly.
The file mode may or may not be set correctly.
Printed 7/26/87 4/29/85 2
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.