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