Commit | Line | Data |
---|---|---|
362b077f C |
1 | |
2 | ||
3 | ||
4 | TIP(1C) UNIX Programmer's Manual TIP(1C) | |
5 | ||
6 | ||
7 | ||
8 | N\bNA\bAM\bME\bE | |
9 | tip, cu - connect to a remote system | |
10 | ||
11 | S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS | |
12 | t\bti\bip\bp [ -\b-v\bv ] [ -\b-_\bs_\bp_\be_\be_\bd ] system-name | |
13 | t\bti\bip\bp [ -\b-v\bv ] [ -\b-_\bs_\bp_\be_\be_\bd ] phone-number | |
14 | c\bcu\bu phone-number [ -\b-t\bt ] [ -\b-s\bs _\bs_\bp_\be_\be_\bd ] [ -\b-a\ba _\ba_\bc_\bu ] [ -\b-l\bl _\bl_\bi_\bn_\be ] | |
15 | [ -\b-#\b# ] | |
16 | ||
17 | D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN | |
18 | _\bT_\bi_\bp and _\bc_\bu establish a full-duplex connection to another | |
19 | machine, giving the appearance of being logged in directly | |
20 | on the remote cpu. It goes without saying that you must | |
21 | have a login on the machine (or equivalent) to which you | |
22 | wish to connect. The preferred interface is _\bt_\bi_\bp. The _\bc_\bu | |
23 | interface is included for those people attached to the | |
24 | ``call UNIX'' command of version 7. This manual page | |
25 | describes only _\bt_\bi_\bp. | |
26 | ||
27 | Typed characters are normally transmitted directly to the | |
28 | remote machine (which does the echoing as well). A tilde | |
29 | (`~') appearing as the first character of a line is an | |
30 | escape signal; the following are recognized: | |
31 | ||
32 | ~\b~^\b^D\bD ~\b~.\b. Drop the connection and exit (you may still be | |
33 | logged in on the remote machine). | |
34 | ||
35 | ~\b~c\bc [_\bn_\ba_\bm_\be] | |
36 | Change directory to name (no argument implies | |
37 | change to your home directory). | |
38 | ||
39 | ~\b~!\b! Escape to a shell (exiting the shell will return | |
40 | you to tip). | |
41 | ||
42 | ~\b~>\b> Copy file from local to remote. _\bT_\bi_\bp prompts for | |
43 | the name of a local file to transmit. | |
44 | ||
45 | ~\b~<\b< Copy file from remote to local. _\bT_\bi_\bp prompts first | |
46 | for the name of the file to be sent, then for a | |
47 | command to be executed on the remote machine. | |
48 | ||
49 | ~\b~p\bp _\bf_\br_\bo_\bm [ _\bt_\bo ] | |
50 | Send a file to a remote UNIX host. The put com- | |
51 | mand causes the remote UNIX system to run the com- | |
52 | mand string ``cat > 'to''', while _\bt_\bi_\bp sends it the | |
53 | ``from'' file. If the ``to'' file isn't specified | |
54 | the ``from'' file name is used. This command is | |
55 | actually a UNIX specific version of the ``~>'' | |
56 | command. | |
57 | ||
58 | ~\b~t\bt _\bf_\br_\bo_\bm [ _\bt_\bo ] | |
59 | Take a file from a remote UNIX host. As in the put | |
60 | ||
61 | ||
62 | ||
63 | Printed 7/9/88 May 5, 1986 1 | |
64 | ||
65 | ||
66 | ||
67 | ||
68 | ||
69 | ||
70 | TIP(1C) UNIX Programmer's Manual TIP(1C) | |
71 | ||
72 | ||
73 | ||
74 | command the ``to'' file defaults to the ``from'' | |
75 | file name if it isn't specified. The remote host | |
76 | executes the command string ``cat 'from';echo ^A'' | |
77 | to send the file to _\bt_\bi_\bp. | |
78 | ||
79 | ~\b~|\b| Pipe the output from a remote command to a local | |
80 | UNIX process. The command string sent to the | |
81 | local UNIX system is processed by the shell. | |
82 | ||
83 | ~\b~$\b$ Pipe the output from a local UNIX process to the | |
84 | remote host. The command string sent to the local | |
85 | UNIX system is processed by the shell. | |
86 | ||
87 | ~\b~#\b# Send a BREAK to the remote system. For systems | |
88 | which don't support the necessary _\bi_\bo_\bc_\bt_\bl call the | |
89 | break is simulated by a sequence of line speed | |
90 | changes and DEL characters. | |
91 | ||
92 | ~\b~s\bs Set a variable (see the discussion below). | |
93 | ||
94 | ~\b~^\b^Z\bZ Stop _\bt_\bi_\bp (only available with job control). | |
95 | ||
96 | ~\b~^\b^Y\bY Stop only the ``local side'' of _\bt_\bi_\bp (only avail- | |
97 | able with job control); the ``remote side'' of | |
98 | _\bt_\bi_\bp, the side that displays output from the remote | |
99 | host, is left running. | |
100 | ||
101 | ~\b~?\b? Get a summary of the tilde escapes | |
102 | ||
103 | ||
104 | _\bT_\bi_\bp uses the file /etc/remote to find how to reach a partic- | |
105 | ular system and to find out how it should operate while | |
106 | talking to the system; refer to _\br_\be_\bm_\bo_\bt_\be(5) for a full | |
107 | description. Each system has a default baud rate with which | |
108 | to establish a connection. If this value is not suitable, | |
109 | the baud rate to be used may be specified on the command | |
110 | line, e.g. ``tip -300 mds''. | |
111 | ||
112 | When _\bt_\bi_\bp establishes a connection it sends out a connection | |
113 | message to the remote system; the default value, if any, is | |
114 | defined in /etc/remote. | |
115 | ||
116 | When _\bt_\bi_\bp prompts for an argument (e.g. during setup of a | |
117 | file transfer) the line typed may be edited with the stan- | |
118 | dard erase and kill characters. A null line in response to | |
119 | a prompt, or an interrupt, will abort the dialogue and | |
120 | return you to the remote machine. | |
121 | ||
122 | _\bT_\bi_\bp guards against multiple users connecting to a remote | |
123 | system by opening modems and terminal lines with exclusive | |
124 | access, and by honoring the locking protocol used by | |
125 | _\bu_\bu_\bc_\bp(1C). | |
126 | ||
127 | ||
128 | ||
129 | Printed 7/9/88 May 5, 1986 2 | |
130 | ||
131 | ||
132 | ||
133 | ||
134 | ||
135 | ||
136 | TIP(1C) UNIX Programmer's Manual TIP(1C) | |
137 | ||
138 | ||
139 | ||
140 | During file transfers _\bt_\bi_\bp provides a running count of the | |
141 | number of lines transferred. When using the ~> and ~< com- | |
142 | mands, the ``eofread'' and ``eofwrite'' variables are used | |
143 | to recognize end-of-file when reading, and specify end-of- | |
144 | file when writing (see below). File transfers normally | |
145 | depend on tandem mode for flow control. If the remote sys- | |
146 | tem does not support tandem mode, ``echocheck'' may be set | |
147 | to indicate _\bt_\bi_\bp should synchronize with the remote system on | |
148 | the echo of each transmitted character. | |
149 | ||
150 | When _\bt_\bi_\bp must dial a phone number to connect to a system it | |
151 | will print various messages indicating its actions. _\bT_\bi_\bp | |
152 | supports the DEC DN-11 and Racal-Vadic 831 auto-call-units; | |
153 | the DEC DF02 and DF03, Ventel 212+, Racal-Vadic 3451, and | |
154 | Bizcomp 1031 and 1032 integral call unit/modems. | |
155 | ||
156 | V\bVA\bAR\bRI\bIA\bAB\bBL\bLE\bES\bS | |
157 | ||
158 | _\bT_\bi_\bp maintains a set of _\bv_\ba_\br_\bi_\ba_\bb_\bl_\be_\bs which control its opera- | |
159 | tion. Some of these variable are read-only to normal users | |
160 | (root is allowed to change anything of interest). Variables | |
161 | may be displayed and set through the ``s'' escape. The syn- | |
162 | tax for variables is patterned after _\bv_\bi(1) and _\bM_\ba_\bi_\bl(1). | |
163 | Supplying ``all'' as an argument to the set command displays | |
164 | all variables readable by the user. Alternatively, the user | |
165 | may request display of a particular variable by attaching a | |
166 | `?' to the end. For example ``escape?'' displays the | |
167 | current escape character. | |
168 | ||
169 | Variables are numeric, string, character, or boolean values. | |
170 | Boolean variables are set merely by specifying their name; | |
171 | they may be reset by prepending a `!' to the name. Other | |
172 | variable types are set by concatenating an `=' and the | |
173 | value. The entire assignment must not have any blanks in | |
174 | it. A single set command may be used to interrogate as well | |
175 | as set a number of variables. Variables may be initialized | |
176 | at run time by placing set commands (without the ``~s'' pre- | |
177 | fix in a file ._\bt_\bi_\bp_\br_\bc in one's home directory). The -\b-v\bv | |
178 | option causes _\bt_\bi_\bp to display the sets as they are made. | |
179 | Certain common variables have abbreviations. The following | |
180 | is a list of common variables, their abbreviations, and | |
181 | their default values. | |
182 | ||
183 | b\bbe\bea\bau\but\bti\bif\bfy\by | |
184 | (bool) Discard unprintable characters when a session is | |
185 | being scripted; abbreviated _\bb_\be. | |
186 | ||
187 | b\bba\bau\bud\bdr\bra\bat\bte\be | |
188 | (num) The baud rate at which the connection was esta- | |
189 | blished; abbreviated _\bb_\ba. | |
190 | ||
191 | d\bdi\bia\bal\blt\bti\bim\bme\beo\bou\but\bt | |
192 | ||
193 | ||
194 | ||
195 | Printed 7/9/88 May 5, 1986 3 | |
196 | ||
197 | ||
198 | ||
199 | ||
200 | ||
201 | ||
202 | TIP(1C) UNIX Programmer's Manual TIP(1C) | |
203 | ||
204 | ||
205 | ||
206 | (num) When dialing a phone number, the time (in | |
207 | seconds) to wait for a connection to be established; | |
208 | abbreviated _\bd_\bi_\ba_\bl. | |
209 | ||
210 | e\bec\bch\bho\boc\bch\bhe\bec\bck\bk | |
211 | (bool) Synchronize with the remote host during file | |
212 | transfer by waiting for the echo of the last character | |
213 | transmitted; default is _\bo_\bf_\bf. | |
214 | ||
215 | e\beo\bof\bfr\bre\bea\bad\bd | |
216 | (str) The set of characters which signify and end-of- | |
217 | tranmission during a ~< file transfer command; abbrevi- | |
218 | ated _\be_\bo_\bf_\br. | |
219 | ||
220 | e\beo\bof\bfw\bwr\bri\bit\bte\be | |
221 | (str) The string sent to indicate end-of-transmission | |
222 | during a ~> file transfer command; abbreviated _\be_\bo_\bf_\bw. | |
223 | ||
224 | e\beo\bol\bl | |
225 | (str) The set of characters which indicate an end-of- | |
226 | line. _\bT_\bi_\bp will recognize escape characters only after | |
227 | an end-of-line. | |
228 | ||
229 | e\bes\bsc\bca\bap\bpe\be | |
230 | (char) The command prefix (escape) character; abbrevi- | |
231 | ated _\be_\bs; default value is `~'. | |
232 | ||
233 | e\bex\bxc\bce\bep\bpt\bti\bio\bon\bns\bs | |
234 | (str) The set of characters which should not be dis- | |
235 | carded due to the beautification switch; abbreviated | |
236 | _\be_\bx; default value is ``\t\n\f\b''. | |
237 | ||
238 | f\bfo\bor\brc\bce\be | |
239 | (char) The character used to force literal data | |
240 | transmission; abbreviated _\bf_\bo; default value is `^P'. | |
241 | ||
242 | f\bfr\bra\bam\bme\bes\bsi\biz\bze\be | |
243 | (num) The amount of data (in bytes) to buffer between | |
244 | file system writes when receiving files; abbreviated | |
245 | _\bf_\br. | |
246 | ||
247 | h\bho\bos\bst\bt | |
248 | (str) The name of the host to which you are connected; | |
249 | abbreviated _\bh_\bo. | |
250 | ||
251 | p\bpr\bro\bom\bmp\bpt\bt | |
252 | (char) The character which indicates and end-of-line on | |
253 | the remote host; abbreviated _\bp_\br; default value is `\n'. | |
254 | This value is used to synchronize during data | |
255 | transfers. The count of lines transferred during a | |
256 | file transfer command is based on recipt of this char- | |
257 | acter. | |
258 | ||
259 | ||
260 | ||
261 | Printed 7/9/88 May 5, 1986 4 | |
262 | ||
263 | ||
264 | ||
265 | ||
266 | ||
267 | ||
268 | TIP(1C) UNIX Programmer's Manual TIP(1C) | |
269 | ||
270 | ||
271 | ||
272 | r\bra\bai\bis\bse\be | |
273 | (bool) Upper case mapping mode; abbreviated _\br_\ba; default | |
274 | value is _\bo_\bf_\bf. When this mode is enabled, all lower | |
275 | case letters will be mapped to upper case by _\bt_\bi_\bp for | |
276 | transmission to the remote machine. | |
277 | ||
278 | r\bra\bai\bis\bse\bec\bch\bha\bar\br | |
279 | (char) The input character used to toggle upper case | |
280 | mapping mode; abbreviated _\br_\bc; default value is `^A'. | |
281 | ||
282 | r\bre\bec\bco\bor\brd\bd | |
283 | (str) The name of the file in which a session script is | |
284 | recorded; abbreviated _\br_\be_\bc; default value is | |
285 | ``tip.record''. | |
286 | ||
287 | s\bsc\bcr\bri\bip\bpt\bt | |
288 | (bool) Session scripting mode; abbreviated _\bs_\bc; default | |
289 | is _\bo_\bf_\bf. When _\bs_\bc_\br_\bi_\bp_\bt is _\bt_\br_\bu_\be, _\bt_\bi_\bp will record every- | |
290 | thing transmitted by the remote machine in the script | |
291 | record file specified in _\br_\be_\bc_\bo_\br_\bd. If the _\bb_\be_\ba_\bu_\bt_\bi_\bf_\by | |
292 | switch is on, only printable ASCII characters will be | |
293 | included in the script file (those characters betwee | |
294 | 040 and 0177). The variable _\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\bs is used to | |
295 | indicate characters which are an exception to the nor- | |
296 | mal beautification rules. | |
297 | ||
298 | t\bta\bab\bbe\bex\bxp\bpa\ban\bnd\bd | |
299 | (bool) Expand tabs to spaces during file transfers; | |
300 | abbreviated _\bt_\ba_\bb; default value is _\bf_\ba_\bl_\bs_\be. Each tab is | |
301 | expanded to 8 spaces. | |
302 | ||
303 | v\bve\ber\brb\bbo\bos\bse\be | |
304 | (bool) Verbose mode; abbreviated _\bv_\be_\br_\bb; default is _\bt_\br_\bu_\be. | |
305 | When verbose mode is enabled, _\bt_\bi_\bp prints messages while | |
306 | dialing, shows the current number of lines transferred | |
307 | during a file transfer operations, and more. | |
308 | ||
309 | S\bSH\bHE\bEL\bLL\bL | |
310 | (str) The name of the shell to use for the ~! command; | |
311 | default value is ``/bin/sh'', or taken from the | |
312 | environment. | |
313 | ||
314 | H\bHO\bOM\bME\bE | |
315 | (str) The home directory to use for the ~c command; | |
316 | default value is taken from the environment. | |
317 | ||
318 | F\bFI\bIL\bLE\bES\bS | |
319 | /etc/remote global system descriptions | |
320 | /etc/phones global phone number data base | |
321 | ${REMOTE} private system descriptions | |
322 | ${PHONES} private phone numbers | |
323 | ~/.tiprc initialization file. | |
324 | ||
325 | ||
326 | ||
327 | Printed 7/9/88 May 5, 1986 5 | |
328 | ||
329 | ||
330 | ||
331 | ||
332 | ||
333 | ||
334 | TIP(1C) UNIX Programmer's Manual TIP(1C) | |
335 | ||
336 | ||
337 | ||
338 | /usr/spool/uucp/LCK..* lock file to avoid conflicts with _\bu_\bu_\bc_\bp | |
339 | ||
340 | D\bDI\bIA\bAG\bGN\bNO\bOS\bST\bTI\bIC\bCS\bS | |
341 | Diagnostics are, hopefully, self explanatory. | |
342 | ||
343 | S\bSE\bEE\bE A\bAL\bLS\bSO\bO | |
344 | remote(5), phones(5) | |
345 | ||
346 | B\bBU\bUG\bGS\bS | |
347 | The full set of variables is undocumented and should, prob- | |
348 | ably, be paired down. | |
349 | ||
350 | ||
351 | ||
352 | ||
353 | ||
354 | ||
355 | ||
356 | ||
357 | ||
358 | ||
359 | ||
360 | ||
361 | ||
362 | ||
363 | ||
364 | ||
365 | ||
366 | ||
367 | ||
368 | ||
369 | ||
370 | ||
371 | ||
372 | ||
373 | ||
374 | ||
375 | ||
376 | ||
377 | ||
378 | ||
379 | ||
380 | ||
381 | ||
382 | ||
383 | ||
384 | ||
385 | ||
386 | ||
387 | ||
388 | ||
389 | ||
390 | ||
391 | ||
392 | ||
393 | Printed 7/9/88 May 5, 1986 6 | |
394 | ||
395 | ||
396 |