BSD 3 development
[unix-history] / usr / man / man1 / netcp.1
CommitLineData
4a53672f
ES
1.TH NETCP 1 2/24/79
2.UC
3.ds s 1
4.ds o 1
5.SH NAME
6netcp \- remote copy of files through the net
7.SH SYNOPSIS
8.B netcp
9[
10.B \-l
11login ] [
12.B \-p
13password ]
14[
15.B \-f
16] [
17.B \-n
18] fromfile tofile
19.SH DESCRIPTION
20.I Netcp
21copies files between machines and is similar to
22.IR cp (\*o).
23At least one of
24.I fromfile
25and
26.I tofile
27must be remote; the
28.B \-l
29and
30.B \-p
31options specify the login name and password
32for that remote machine.
33If these options are not specified,
34the name and password are prompted for on the terminal.
35The
36.B \-f
37option forces prompting for the login name and password;
38the
39.B \-n
40option prevents confirmation
41or error messages from being returned.
42.PP
43.I Fromfile
44and
45.I tofile
46follow these conventions:
47.TP 4
481.
49A simple filename is assumed to be local and from the current directory.
50.TP 4
512.
52A filename preceded by a machine designator (see below)
53is a reference to a file on the specified remote machine.
54If a full pathname is not given, it is assumed to be from the login directory.
55.PP
56Examples:
57.IP " grades.p" 20
58file in the current directory on local machine
59.IP " C:junk" 20
60file in your login directory on C
61.IP " /usr/lib/pq" 20
62file on local machine
63.IP " C:comp/c2.c" 20
64file in a subdirectory on C machine
65.PP
66.I Netcp
67executes the
68.IR net (\*s)
69command.
70.SH "SEE ALSO"
71net(\*s), netrm(\*s), netq(\*s), netlog(\*s),
72netlpr(\*s), netmail(\*s), cp(\*o), mail(\*o)
73.SH AUTHOR
74Eric Schmidt
75.SH BUGS
76The second filename may not be defaulted to a directory name,
77it must be given explicitly.
78.br
79The file mode may or may not be set correctly.