Research V7 development
[unix-history] / usr / man / man1 / cu.1c
CommitLineData
84fa098f
LM
1.TH CU 1C
2.SH NAME
3cu \- call UNIX
4.SH SYNOPSIS
5.B cu
6telno
7[
8.BR \-t ""
9]
10[
11.BR \-s ""
12speed ]
13[
14.BR \-a ""
15acu ]
16[
17.BR \-l ""
18line ]
19.SH DESCRIPTION
20.I Cu
21calls up another UNIX system,
22a terminal,
23or possibly a non-UNIX system.
24It manages an interactive conversation with possible
25transfers of text files.
26.I Telno
27is the telephone number,
28with minus signs at appropriate places for delays.
29The
30.BR \-t ""
31flag is used to dial out to a terminal.
32.I Speed
33gives the transmission speed (110, 134, 150, 300, 1200);
34300 is the default value.
35.PP
36The
37.BR \-a ""
38and
39.BR \-l ""
40values may be used to
41specify pathnames
42for the ACU and communications line devices.
43They can be used to override the following
44built-in choices:
45.PP
46.BR \-a " /dev/cua0"
47.BR \-l " /dev/cul0"
48.PP
49After making the connection,
50.I cu
51runs as two processes:
52the
53.I send
54process reads the standard input and
55passes most of it to the remote system;
56the
57.I receive
58process reads from the remote system and passes
59most data to the standard output.
60Lines beginning with `~' have special meanings.
61.PP
62The
63.I send
64process interprets the following:
65.TP 18
66~\|\fB.\|
67terminate the conversation.
68.br
69.ns
70.TP 18
71~EOT
72terminate the conversation
73.TP 18
74~<file
75send the contents of
76.I file
77to the remote system,
78as though typed at the terminal.
79.TP 18
80~!
81invoke an interactive shell on the local system.
82.TP 18
83~!cmd ...
84run the command on the local system
85(via
86.BR "sh \-c" ")."
87.TP 18
88~$cmd ...
89run the command locally and send its output
90to the remote system.
91.TP 18
92~%take from [to]
93copy file `from' (on the remote system)
94to file `to' on the local system.
95If `to' is omitted,
96the `from' name is used both places.
97.TP 18
98~%put from [to]
99copy file `from' (on local system)
100to file `to' on remote system.
101If `to' is omitted, the `from' name is used both places.
102.TP 18
103~~\fB\|.\|.\|.\fR
104send
105the line `~\|.\|.\|.'.
106.PP
107The
108.I receive
109process handles output diversions of the following form:
110.PP
111\&~>[>][:]file
112.br
113zero or more lines to be written to file
114.br
115\&~>
116.PP
117In any case, output is diverted (or appended, if `>>' used) to the file.
118If `:' is used,
119the diversion is
120.I silent,
121i.e., it is written only to the file.
122If `:' is omitted,
123output is written both to the file and to the standard output.
124The trailing `~>' terminates the diversion.
125.PP
126The use of
127.B ~%put
128requires
129.I stty
130and
131.I cat
132on the remote side.
133It also requires that the
134current erase and kill characters on the remote
135system be identical to the current ones on the local system.
136Backslashes are inserted at appropriate places.
137.PP
138The use of
139.B ~%take
140requires the existence of
141.I echo
142and
143.I tee
144on the remote system.
145Also,
146.B "stty tabs"
147mode is required on the remote system if
148tabs are to be copied without expansion.
149.SH FILES
150/dev/cua0
151.br
152/dev/cul0
153.br
154/dev/null
155.SH "SEE ALSO"
156dn(4), tty(4)
157.SH DIAGNOSTICS
158Exit code is
159zero for normal exit,
160nonzero (various values) otherwise.
161.SH BUGS
162The syntax is unique.