1 .\" Copyright (c) 1980, 1990, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of the University nor the names of its contributors
13 .\" may be used to endorse or promote products derived from this software
14 .\" without specific prior written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" @(#)tip.1 8.4 (Berkeley) 4/18/94
29 .\" $FreeBSD: src/usr.bin/tip/tip/tip.1,v 1.7.2.7 2002/06/21 15:29:35 charnier Exp $
37 .Nd connect to a remote system
59 commands establish a full-duplex connection to another machine,
60 giving the appearance of being logged in directly on the
61 remote cpu. It goes without saying that you must have a login
62 on the machine (or equivalent) to which you wish to connect.
63 The preferred interface is
67 interface is included for those people attached to the
75 The options are as follows:
76 .Bl -tag -width indent
80 set the speed of the connection.
87 specify the line to use.
88 Either of the forms like
97 Typed characters are normally transmitted directly to the remote
98 machine (which does the echoing as well). A tilde (`~') appearing
99 as the first character of a line is an escape signal; the following
102 .It Ic \&~^D No or Ic \&~ .
103 Drop the connection and exit
104 (you may still be logged in on the
106 .It Ic \&~c Op Ar name
110 implies change to your home directory).
112 Escape to a shell (exiting the shell will
115 Copy file from local to remote.
118 utility prompts for the name of a local file to transmit.
120 Copy file from remote to local.
123 utility prompts first for the name of the file to be sent, then for
124 a command to be executed on the remote machine.
125 .It Ic \&~p Ar from Op Ar to
126 Send a file to a remote
128 host. The put command causes the remote
130 system to run the command string ``cat > 'to''', while
132 sends it the ``from''
133 file. If the ``to'' file isn't specified the ``from'' file name is used.
134 This command is actually a
136 specific version of the ``~>'' command.
137 .It Ic \&~t Ar from Op Ar to
138 Take a file from a remote
141 As in the put command the ``to'' file
142 defaults to the ``from'' file name if it isn't specified.
144 executes the command string ``cat 'from';echo ^A'' to send the file to
147 Pipe the output from a remote command to a local
150 The command string sent to the local
152 system is processed by the shell.
154 Pipe the output from a local
156 process to the remote host.
157 The command string sent to the local
159 system is processed by the shell.
161 Fork a child process on the local system to perform special protocols
162 such as \s-1XMODEM\s+1. The child program will be run with the following
163 somewhat unusual arrangement of file descriptors:
164 .Bd -literal -offset indent -compact
174 to the remote system.
175 For systems which don't support the
178 call the break is simulated by a sequence of line speed changes
183 Set a variable (see the discussion below).
187 (only available with job control).
189 Stop only the ``local side'' of
191 (only available with job control);
192 the ``remote side'' of
194 the side that displays output from the remote host, is left running.
196 Get a summary of the tilde escapes
201 utility uses the file
203 to find how to reach a particular
204 system and to find out how it should operate while talking
208 for a full description.
209 Each system has a default baud rate with which to
210 establish a connection. If this value is not suitable, the baud rate
211 to be used may be specified on the command line, e.g.\&
216 establishes a connection it sends out a
217 connection message to the remote system; the default value, if any,
225 prompts for an argument (e.g. during setup of
226 a file transfer) the line typed may be edited with the standard
227 erase and kill characters. A null line in response to a prompt,
228 or an interrupt, will abort the dialogue and return you to the
233 utility guards against multiple users connecting to a remote system
234 by opening modems and terminal lines with exclusive access,
235 and by honoring the locking protocol used by
238 During file transfers
240 provides a running count of the number of lines transferred.
241 When using the ~> and ~< commands, the ``eofread'' and ``eofwrite''
242 variables are used to recognize end-of-file when reading, and
243 specify end-of-file when writing (see below). File transfers
244 normally depend on tandem mode for flow control. If the remote
245 system does not support tandem mode, ``echocheck'' may be set
248 should synchronize with the remote system on the echo of each
249 transmitted character.
253 must dial a phone number to connect to a system it will print
254 various messages indicating its actions.
257 utility supports modems that use the AT command set.
260 utility uses the file
262 to find out how to operate with a particular
265 for a full description.
269 utility maintains a set of
271 which control its operation.
272 Some of these variables are read-only to normal users (root is allowed
273 to change anything of interest). Variables may be displayed
274 and set through the ``s'' escape. The syntax for variables is patterned
280 as an argument to the set command displays all variables readable by
281 the user. Alternatively, the user may request display of a particular
282 variable by attaching a `?' to the end. For example ``escape?''
283 displays the current escape character.
285 Variables are numeric, string, character, or boolean values. Boolean
286 variables are set merely by specifying their name; they may be reset
287 by prepending a `!' to the name. Other variable types are set by
288 concatenating an `=' and the value. The entire assignment must not
289 have any blanks in it. A single set command may be used to interrogate
290 as well as set a number of variables.
291 Variables may be initialized at run time by placing set commands
292 (without the ``~s'' prefix in a file
294 in one's home directory). The
298 to display the sets as they are made.
299 Certain common variables have abbreviations.
300 The following is a list of common variables,
301 their abbreviations, and their default values.
304 (bool) Discard unprintable characters when a session is being scripted;
308 (num) The baud rate at which the connection was established;
312 (num) Number of milliseconds to delay after the transmission of
317 (num) When dialing a phone number, the time (in seconds)
318 to wait for a connection to be established; abbreviated
321 (bool) Synchronize with the remote host during file transfer by
322 waiting for the echo of the last character transmitted; default is
325 (str) The set of characters which signify an end-of-transmission
326 during a ~< file transfer command; abbreviated
329 (str) The string sent to indicate end-of-transmission during
330 a ~> file transfer command; abbreviated
333 (str) The set of characters which indicate an end-of-line.
336 utility will recognize escape characters only after an end-of-line.
338 (char) The command prefix (escape) character; abbreviated
340 default value is `~'.
342 (str) The set of characters which should not be discarded
343 due to the beautification switch; abbreviated
345 default value is ``\et\en\ef\eb''.
347 (char) The character used to force literal data transmission;
350 default value is `^P'.
352 (num) The amount of data (in bytes) to buffer between file system
353 writes when receiving files; abbreviated
356 (str) The name of the host to which you are connected; abbreviated
359 (num) Number of milliseconds to delay after the transmission of
364 (str) Pathname of a login shell script to run once connected; standard input
365 and output are redirected to the remote host.
366 Leading tildes in the pathname
367 are expanded expansion; abbreviated
370 (str) Pathname of a shell script to run before disconnecting; standard input
371 and output are redirected to the remote host.
372 Leading tildes in the pathname
373 are expanded expansion; abbreviated
376 (char) The character which indicates an end-of-line on the remote
379 default value is `\en'. This value is used to synchronize during
380 data transfers. The count of lines transferred during a file transfer
381 command is based on receipt of this character.
383 (bool) Upper case mapping mode; abbreviated
387 When this mode is enabled, all lower case letters will be mapped to
390 for transmission to the remote machine.
392 (char) The input character used to toggle upper case mapping mode;
395 default value is `^A'.
397 (str) The name of the file in which a session script is recorded;
400 default value is ``tip.record''.
402 (bool) Session scripting mode; abbreviated
411 will record everything transmitted by the remote machine in
412 the script record file specified in
416 switch is on, only printable
418 characters will be included in
419 the script file (those characters between 040 and 0177). The
422 is used to indicate characters which are an exception to the normal
423 beautification rules.
425 (bool) Expand tabs to spaces during file transfers; abbreviated
429 Each tab is expanded to 8 spaces.
431 (bool) Verbose mode; abbreviated
435 When verbose mode is enabled,
437 prints messages while dialing, shows the current number
438 of lines transferred during a file transfer operations,
444 utility uses the following environment variables:
447 (str) The name of the shell to use for the ~! command; default
448 value is ``/bin/sh'', or taken from the environment.
450 (str) The home directory to use for the ~c command; default
451 value is taken from the environment.
453 Check for a default host if none specified.
462 .Bl -tag -width /var/spool/lock/LCK..* -compact
464 Global modem configuration data base.
466 Global system descriptions.
468 Global phone number data base.
470 Private system descriptions.
472 Private phone numbers.
477 .It Pa /var/log/aculog
479 .It Pa /var/spool/lock/LCK..*
480 Lock file to avoid conflicts with
484 Diagnostics are, hopefully, self explanatory.
494 The full set of variables is undocumented and should, probably, be