BSD 2 development
[unix-history] / man / net.u
CommitLineData
0cb447d3
ES
1.TH NET UCB 2/24/79 UCB
2.ds s UCB
3.SH NAME
4net \- execute a command on a remote machine
5.SH SYNOPSIS
6.B net
7[
8.B \-m
9machine ] [
10.B \-l
11login
12] [
13.B \-p
14password ] [
15.B \-r
16respfile ] [
17.B \-
18] [
19.B \-f
20] [
21.B \-n
22]
23command
24.SH DESCRIPTION
25The
26.I net
27command sends the specified
28.I command
29(which should be enclosed in quotes) over the network to the specified
30(or default) remote machine.
31The network will notify the user when the command has
32been executed by `writing'
33(see
34.IR write (1))
35to the terminal if the user is still logged in,
36or `mailing' (see
37.IR mail (1))
38otherwise.
39.PP
40There are a number of options, which must precede the command.
41Options may be specified on the command line, preceding
42the command, or in a file ``.netrc'' in the user's login directory.
43The ``.netrc'' file is not described here.
44The
45.B \-m
46option specifies the desired remote machine.
47If a remote machine is not specified, the default one is used.
48The machine name may be a one letter abbreviation or a full name;
49upper\- and lower\-case distinctions are ignored.
50If the standard output and standard error files are to be saved, the
51.B \-r
52option returns to the
53originating user a file
54.I (respfile)
55containing the standard output and error files
56when the command was executed on the remote machine.
57If this option is used, no message is written back.
58The presence of a non-zero length
59.I respfile
60indicates completion.
61The
62.B \-n
63option suppresses all acknowledgements, including error messages.
64.PP
65If the
66.B \-l
67and
68.B \-p
69options are not specified,
70and the login name and password are not in the ``.netrc'' file,
71a remote login name and password is prompted for on the terminal;
72the
73.B \-f
74flag forces login name and password prompting.
75A single
76.B \-
77indicates that the standard input from the local machine is to be taken
78and transmitted to the remote machine, where it will be the standard input for
79.I command.
80Options do not need to be separated by spaces,
81i.e. either ``\-m C'' or ``\-mC'' is accepted.
82There are also other options intended to be used by
83higher level application programs and shell scripts only;
84they will not be described here.
85.PP
86The net command prepares a file to be sent to the remote machine
87and queues it in the `network queue.'
88.I Netq
89(\*s) gives information about the queues.
90The file
91.I `/usr/net/logfile'
92has a cryptic indication of what has recently been sent and received.
93.SH AUTHOR
94Eric Schmidt
95.SH FILES
96.br
97.ns
98.HP 21
99.br
100.ns
101.TP 21
102/usr/net/logfile
103the log
104.br
105.ns
106.TP 21
107/usr/net/send?
108the directories where the queues are
109.br
110.ns
111.TP 21
112/usr/net/rcv
113directory containing files received
114.br
115.ns
116.TP 21
117/usr/net/plogfile?
118log file including packet transmission statistics
119.br
120.ns
121.TP 21
122/usr/net/netstat?
123statistics file
124.SH "SEE ALSO"
125netrm(\*s), netq(\*s), netlog(\*s), netcp(\*s),
126netlpr(\*s), netmail(\*s),
127mail(1)
128.br
129``An Introduction to the Berkeley Network", by Eric Schmidt