Commit | Line | Data |
---|---|---|
a62ea421 KB |
1 | .\" Copyright (c) 1980 The Regents of the University of California. |
2 | .\" All rights reserved. | |
2057e373 | 3 | .\" |
a62ea421 KB |
4 | .\" Redistribution and use in source and binary forms are permitted |
5 | .\" provided that the above copyright notice and this paragraph are | |
6 | .\" duplicated in all such forms and that any documentation, | |
7 | .\" advertising materials, and other materials related to such | |
8 | .\" distribution and use acknowledge that the software was developed | |
9 | .\" by the University of California, Berkeley. The name of the | |
10 | .\" University may not be used to endorse or promote products derived | |
11 | .\" from this software without specific prior written permission. | |
12 | .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
13 | .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
14 | .\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
2057e373 | 15 | .\" |
a62ea421 KB |
16 | .\" @(#)tip.1 6.4 (Berkeley) %G% |
17 | .\" | |
18 | .TH TIP 1 "" | |
2057e373 KM |
19 | .UC 4 |
20 | .SH NAME | |
2252a1c0 | 21 | tip, cu \- connect to a remote system |
2057e373 | 22 | .SH SYNOPSIS |
2252a1c0 | 23 | .B tip |
2057e373 | 24 | [ |
2252a1c0 KM |
25 | .B \-v |
26 | ] [ | |
27 | .BI \- speed | |
28 | ] system-name | |
29 | .br | |
30 | .B tip | |
2057e373 | 31 | [ |
2252a1c0 KM |
32 | .B \-v |
33 | ] [ | |
34 | .BI \- speed | |
35 | ] phone-number | |
36 | .br | |
37 | .B cu | |
38 | phone-number | |
2057e373 | 39 | [ |
2252a1c0 KM |
40 | .B \-t |
41 | ] [ | |
2057e373 | 42 | .B \-s |
2252a1c0 KM |
43 | .I speed |
44 | ] [ | |
45 | .B \ -a | |
46 | .I acu | |
47 | ] [ | |
2057e373 | 48 | .B \-l |
2252a1c0 KM |
49 | .I line |
50 | ] [ | |
51 | .B \-# | |
2057e373 KM |
52 | ] |
53 | .SH DESCRIPTION | |
2252a1c0 | 54 | .I Tip |
2057e373 | 55 | and |
2252a1c0 KM |
56 | .I cu |
57 | establish a full-duplex connection to another machine, | |
58 | giving the appearance of being logged in directly on the | |
59 | remote cpu. It goes without saying that you must have a login | |
60 | on the machine (or equivalent) to which you wish to connect. | |
61 | The preferred interface is | |
62 | .IR tip . | |
63 | The | |
64 | .I cu | |
65 | interface is included for those people attached to the | |
66 | ``call UNIX'' command of version 7. This manual page | |
67 | describes only | |
68 | .IR tip . | |
2057e373 | 69 | .PP |
2252a1c0 KM |
70 | Typed characters are normally transmitted directly to the remote |
71 | machine (which does the echoing as well). A tilde (`~') appearing | |
72 | as the first character of a line is an escape signal; the following | |
73 | are recognized: | |
74 | .TP 10 | |
75 | .B ~^D ~. | |
76 | Drop the connection and exit | |
77 | (you may still be logged in on the | |
78 | remote machine). | |
79 | .TP 10 | |
80 | \fB~c \fP [\fIname\fP] | |
81 | Change directory to name (no argument | |
82 | implies change to your home directory). | |
83 | .TP 10 | |
84 | .B ~! | |
85 | Escape to a shell (exiting the shell will | |
86 | return you to tip). | |
87 | .TP 10 | |
88 | .B ~> | |
89 | Copy file from local to remote. | |
90 | .I Tip | |
91 | prompts for the name of a local file to transmit. | |
92 | .TP 10 | |
93 | .B ~< | |
94 | Copy file from remote to local. | |
95 | .I Tip | |
96 | prompts first for the name of the file to be sent, then for | |
97 | a command to be executed on the remote machine. | |
98 | .TP 10 | |
99 | \fB~p\fP \fIfrom\fP [ \fIto\fP ] | |
100 | Send a file to a remote UNIX host. The put command causes the remote UNIX | |
101 | system to run the command string ``cat > 'to''', while | |
102 | .I tip | |
103 | sends it the ``from'' | |
104 | file. If the ``to'' file isn't specified the ``from'' file name is used. | |
105 | This command is actually a UNIX specific version of the ``~>'' command. | |
106 | .TP 10 | |
107 | \fB~t\fP \fIfrom\fP [ \fIto\fP ] | |
108 | Take a file from a remote UNIX host. | |
109 | As in the put command the ``to'' file | |
110 | defaults to the ``from'' file name if it isn't specified. | |
111 | The remote host | |
112 | executes the command string ``cat 'from';echo ^A'' to send the file to | |
113 | .IR tip . | |
114 | .TP 10 | |
115 | .B ~| | |
116 | Pipe the output from a remote command to a local UNIX process. | |
117 | The command string sent to the local UNIX system is processed by the shell. | |
118 | .TP 10 | |
52f09821 DS |
119 | .B ~$ |
120 | Pipe the output from a local UNIX process to the remote host. | |
121 | The command string sent to the local UNIX system is processed by the shell. | |
122 | .TP 10 | |
2252a1c0 KM |
123 | .B ~# |
124 | Send a BREAK to the remote system. | |
125 | For systems which don't support the | |
126 | necessary | |
127 | .I ioctl | |
128 | call the break is simulated by a sequence of line speed changes | |
129 | and DEL characters. | |
130 | .TP 10 | |
131 | .B ~s | |
132 | Set a variable (see the discussion below). | |
133 | .TP 10 | |
134 | .B ~^Z | |
135 | Stop | |
136 | .I tip | |
137 | (only available with job control). | |
138 | .TP 10 | |
c6f7764d SL |
139 | .B ~^Y |
140 | Stop only the ``local side'' of | |
141 | .I tip | |
142 | (only available with job control); | |
143 | the ``remote side'' of | |
144 | .IR tip , | |
145 | the side that displays output from the remote host, is left running. | |
146 | .TP 10 | |
2252a1c0 KM |
147 | .B ~? |
148 | Get a summary of the tilde escapes | |
149 | .sp | |
2057e373 | 150 | .PP |
2252a1c0 KM |
151 | .I Tip |
152 | uses the file /etc/remote to find how to reach a particular | |
153 | system and to find out how it should operate while talking | |
154 | to the system; | |
155 | refer to | |
156 | .IR remote (5) | |
157 | for a full description. | |
158 | Each system has a default baud rate with which to | |
159 | establish a connection. If this value is not suitable, the baud rate | |
160 | to be used may be specified on the command line, e.g. ``tip -300 mds''. | |
2057e373 | 161 | .PP |
2252a1c0 KM |
162 | When |
163 | .I tip | |
164 | establishes a connection it sends out a | |
165 | connection message to the remote system; the default value, if any, | |
166 | is defined in /etc/remote. | |
2057e373 | 167 | .PP |
2252a1c0 KM |
168 | When |
169 | .I tip | |
170 | prompts for an argument (e.g. during setup of | |
171 | a file transfer) the line typed may be edited with the standard | |
172 | erase and kill characters. A null line in response to a prompt, | |
173 | or an interrupt, will abort the dialogue and return you to the | |
174 | remote machine. | |
2057e373 | 175 | .PP |
2252a1c0 KM |
176 | .I Tip |
177 | guards against multiple users connecting to a remote system | |
178 | by opening modems and terminal lines with exclusive access, | |
179 | and by honoring the locking protocol used by | |
180 | .IR uucp (1C). | |
2057e373 | 181 | .PP |
2252a1c0 KM |
182 | During file transfers |
183 | .I tip | |
184 | provides a running count of the number of lines transferred. | |
185 | When using the ~> and ~< commands, the ``eofread'' and ``eofwrite'' | |
186 | variables are used to recognize end-of-file when reading, and | |
187 | specify end-of-file when writing (see below). File transfers | |
188 | normally depend on tandem mode for flow control. If the remote | |
189 | system does not support tandem mode, ``echocheck'' may be set | |
190 | to indicate | |
191 | .I tip | |
192 | should synchronize with the remote system on the echo of each | |
193 | transmitted character. | |
2057e373 | 194 | .PP |
2252a1c0 KM |
195 | When |
196 | .I tip | |
197 | must dial a phone number to connect to a system it will print | |
198 | various messages indicating its actions. | |
199 | .I Tip | |
200 | supports the DEC DN-11 and Racal-Vadic 831 auto-call-units; | |
201 | the DEC DF02 and DF03, Ventel 212+, Racal-Vadic 3451, and | |
202 | Bizcomp 1031 and 1032 integral call unit/modems. | |
2057e373 | 203 | .PP |
2252a1c0 KM |
204 | .SM |
205 | .B VARIABLES | |
2057e373 | 206 | .PP |
2252a1c0 KM |
207 | .I Tip |
208 | maintains a set of | |
209 | .I variables | |
210 | which control its operation. | |
211 | Some of these variable are read-only to normal users (root is allowed | |
212 | to change anything of interest). Variables may be displayed | |
213 | and set through the ``s'' escape. The syntax for variables is patterned | |
214 | after | |
215 | .IR vi (1) | |
2057e373 | 216 | and |
2252a1c0 KM |
217 | .IR Mail (1). |
218 | Supplying ``all'' | |
219 | as an argument to the set command displays all variables readable by | |
220 | the user. Alternatively, the user may request display of a particular | |
221 | variable by attaching a `?' to the end. For example ``escape?'' | |
222 | displays the current escape character. | |
2057e373 | 223 | .PP |
2252a1c0 KM |
224 | Variables are numeric, string, character, or boolean values. Boolean |
225 | variables are set merely by specifying their name; they may be reset | |
226 | by prepending a `!' to the name. Other variable types are set by | |
227 | concatenating an `=' and the value. The entire assignment must not | |
228 | have any blanks in it. A single set command may be used to interrogate | |
229 | as well as set a number of variables. | |
230 | Variables may be initialized at run time by placing set commands | |
231 | (without the ``~s'' prefix in a file | |
232 | .I .tiprc | |
233 | in one's home directory). The | |
234 | .B \-v | |
235 | option causes | |
236 | .I tip | |
237 | to display the sets as they are made. | |
238 | Certain common variables have abbreviations. | |
239 | The following is a list of common variables, | |
240 | their abbreviations, and their default values. | |
241 | .TP | |
242 | .B beautify | |
2057e373 | 243 | .br |
2252a1c0 KM |
244 | (bool) Discard unprintable characters when a session is being scripted; |
245 | abbreviated | |
246 | .IR be . | |
247 | .TP | |
248 | .B baudrate | |
2057e373 | 249 | .br |
2252a1c0 KM |
250 | (num) The baud rate at which the connection was established; |
251 | abbreviated | |
252 | .IR ba . | |
253 | .TP | |
254 | .B dialtimeout | |
2057e373 | 255 | .br |
2252a1c0 KM |
256 | (num) When dialing a phone number, the time (in seconds) |
257 | to wait for a connection to be established; abbreviated | |
258 | .IR dial . | |
259 | .TP | |
260 | .B echocheck | |
261 | .br | |
262 | (bool) Synchronize with the remote host during file transfer by | |
263 | waiting for the echo of the last character transmitted; default is | |
264 | .IR off . | |
265 | .TP | |
266 | .B eofread | |
267 | .br | |
268 | (str) The set of characters which signify and end-of-tranmission | |
269 | during a ~< file transfer command; abbreviated | |
270 | .IR eofr . | |
271 | .TP | |
272 | .B eofwrite | |
273 | .br | |
274 | (str) The string sent to indicate end-of-transmission during | |
275 | a ~> file transfer command; abbreviated | |
276 | .IR eofw . | |
277 | .TP | |
278 | .B eol | |
279 | .br | |
280 | (str) The set of characters which indicate an end-of-line. | |
281 | .I Tip | |
282 | will recognize escape characters only after an end-of-line. | |
283 | .TP | |
284 | .B escape | |
285 | .br | |
286 | (char) The command prefix (escape) character; abbreviated | |
287 | .IR es ; | |
288 | default value is `~'. | |
289 | .TP | |
290 | .B exceptions | |
291 | .br | |
292 | (str) The set of characters which should not be discarded | |
293 | due to the beautification switch; abbreviated | |
294 | .IR ex ; | |
295 | default value is ``\et\en\ef\eb''. | |
296 | .TP | |
297 | .B force | |
298 | .br | |
299 | (char) The character used to force literal data transmission; | |
300 | abbreviated | |
301 | .IR fo ; | |
302 | default value is `^P'. | |
303 | .TP | |
304 | .B framesize | |
305 | .br | |
306 | (num) The amount of data (in bytes) to buffer between file system | |
307 | writes when receiving files; abbreviated | |
308 | .IR fr . | |
309 | .TP | |
310 | .B host | |
311 | .br | |
312 | (str) The name of the host to which you are connected; abbreviated | |
313 | .IR ho . | |
314 | .TP | |
315 | .B prompt | |
316 | .br | |
317 | (char) The character which indicates and end-of-line on the remote | |
318 | host; abbreviated | |
319 | .IR pr ; | |
320 | default value is `\en'. This value is used to synchronize during | |
321 | data transfers. The count of lines transferred during a file transfer | |
322 | command is based on recipt of this character. | |
323 | .TP | |
324 | .B raise | |
325 | .br | |
326 | (bool) Upper case mapping mode; abbreviated | |
327 | .IR ra ; | |
328 | default value is | |
329 | .IR off . | |
330 | When this mode is enabled, all lower case letters will be mapped to | |
331 | upper case by | |
332 | .I tip | |
333 | for transmission to the remote machine. | |
334 | .TP | |
335 | .B raisechar | |
336 | .br | |
337 | (char) The input character used to toggle upper case mapping mode; | |
338 | abbreviated | |
339 | .IR rc ; | |
340 | default value is `^A'. | |
341 | .TP | |
342 | .B record | |
343 | .br | |
344 | (str) The name of the file in which a session script is recorded; | |
345 | abbreviated | |
346 | .IR rec ; | |
347 | default value is ``tip.record''. | |
348 | .TP | |
349 | .B script | |
350 | .br | |
351 | (bool) Session scripting mode; abbreviated | |
352 | .IR sc ; | |
353 | default is | |
354 | .IR off . | |
355 | When | |
356 | .I script | |
357 | is | |
358 | .IR true , | |
359 | .I tip | |
360 | will record everything transmitted by the remote machine in | |
361 | the script record file specified in | |
362 | .IR record . | |
363 | If the | |
364 | .I beautify | |
365 | switch is on, only printable ASCII characters will be included in | |
366 | the script file (those characters betwee 040 and 0177). The | |
367 | variable | |
368 | .I exceptions | |
369 | is used to indicate characters which are an exception to the normal | |
370 | beautification rules. | |
371 | .TP | |
372 | .B tabexpand | |
373 | .br | |
374 | (bool) Expand tabs to spaces during file transfers; abbreviated | |
375 | .IR tab ; | |
376 | default value is | |
377 | .IR false . | |
378 | Each tab is expanded to 8 spaces. | |
379 | .TP | |
380 | .B verbose | |
381 | .br | |
382 | (bool) Verbose mode; abbreviated | |
383 | .IR verb ; | |
384 | default is | |
385 | .IR true . | |
386 | When verbose mode is enabled, | |
387 | .I tip | |
388 | prints messages while dialing, shows the current number | |
389 | of lines transferred during a file transfer operations, | |
390 | and more. | |
391 | .TP | |
392 | .B SHELL | |
393 | .br | |
394 | (str) The name of the shell to use for the ~! command; default | |
395 | value is ``/bin/sh'', or taken from the environment. | |
396 | .TP | |
397 | .B HOME | |
398 | .br | |
399 | (str) The home directory to use for the ~c command; default | |
400 | value is taken from the environment. | |
401 | .PP | |
402 | .SH FILES | |
403 | .ta \w'/usr/spool/uucp/LCK..* 'u | |
404 | .nf | |
405 | /etc/remote global system descriptions | |
406 | /etc/phones global phone number data base | |
407 | ${REMOTE} private system descriptions | |
408 | ${PHONES} private phone numbers | |
409 | ~/.tiprc initialization file. | |
410 | /usr/spool/uucp/LCK..* lock file to avoid conflicts with \fIuucp\fP | |
411 | .fi | |
2057e373 | 412 | .SH DIAGNOSTICS |
2252a1c0 KM |
413 | Diagnostics are, hopefully, self explanatory. |
414 | .SH "SEE ALSO" | |
a62ea421 | 415 | remote(5), phones(5) |
2057e373 | 416 | .SH BUGS |
2252a1c0 KM |
417 | The full set of variables is undocumented and should, probably, be |
418 | paired down. |