|
|
1.1 root 1:
2:
3:
4: NET(1) UNIX Programmer's Manual NET(1)
5:
6:
7:
8: NAME
9: net - execute a command on a remote machine
10:
11: SYNOPSIS
12: net [ -m machine ] [ -l login ] [ -p password ] [ -r
13: respfile ] [ - ] [ -f ] [ -n ] [ -q ] command
14:
15: DESCRIPTION
16: The _n_e_t command sends the specified _c_o_m_m_a_n_d (which should be
17: enclosed in quotes) over the network to the specified (or
18: default) remote machine. The network will notify the user
19: when the command has been executed and will return to him
20: any output or error indication by `writing' (see _w_r_i_t_e(1))
21: to the terminal if he is still logged in, or `mailing' (see
22: _m_a_i_l(1)) otherwise.
23:
24: There are a number of options, which must precede the com-
25: mand. Options may be specified on the command line, preced-
26: ing the command, or in a file ``.netrc'' in the user's login
27: directory. The ``.netrc'' file is not described here. The
28: -m option specifies the desired remote machine. If a remote
29: machine is not specified, the default one is used. The
30: machine name may be a one letter abbreviation or a full
31: name; upper- and lower-case distinctions are ignored. If
32: the standard output and standard error files are to be
33: saved, the -r option returns to the originating user a file
34: (_r_e_s_p_f_i_l_e) containing the standard output and error files
35: when the command was executed on the remote machine. If
36: this option is used, no message is written back. The pres-
37: ence of a non-zero length _r_e_s_p_f_i_l_e indicates completion.
38: The -q option suppresses all acknowledgements unless an
39: error occurs, there is output from the command, or the exit
40: code of _c_o_m_m_a_n_d is non-zero.
41:
42: If the -l and -p options are not specified, and the login
43: name and password are not in the ``.netrc'' file, a remote
44: login name and password is prompted for on the terminal; the
45: -f flag forces login name and password prompting. A single
46: - indicates that the standard input from the local machine
47: is to be taken and transmitted to the remote machine, where
48: it will be the standard input for _c_o_m_m_a_n_d. The -n flag
49: forces all acknowledgment and output messages to be mailed
50: rather than written on the terminal. Options do not need to
51: be separated by spaces, i.e. either ``-m C'' or ``-mC'' is
52: accepted. There are also other options intended to be used
53: by higher level application programs and shell scripts only;
54: they will not be described here.
55:
56: The net command prepares a file to be sent to the remote
57: machine and queues it in the `network queue.' _N_e_t_q (1) gives
58: information about the queues.
59:
60:
61:
62:
63: Printed 7/26/87 4/29/85 1
64:
65:
66:
67:
68:
69:
70: NET(1) UNIX Programmer's Manual NET(1)
71:
72:
73:
74: AUTHOR
75: Eric Schmidt
76:
77: FILES
78: /usr/spool/berknet/logfilelogfile with information about net
79: activity
80: /usr/spool/berknet/plogfile?log file including packet
81: transmission statistics
82: /usr/spool/berknet/netstat?statistics file
83: /usr/net/network.map local network names and topology
84:
85: BUGS
86: -q should be the default.
87:
88: SEE ALSO
89: netrm(1), netq(1), netlog(1), netcp(1), netlpr(1), net-
90: mail(1), netlogin(1), mail(1)
91: ``An Introduction to the Berkeley Network", by Eric Schmidt
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129: Printed 7/26/87 4/29/85 2
130:
131:
132:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.