.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
.\" %sccs.include.redist.roff%
.\" @(#)tip.1 8.3 (Berkeley) %G%
.Nd connect to a remote system
establish a full-duplex connection to another machine,
giving the appearance of being logged in directly on the
remote cpu. It goes without saying that you must have a login
on the machine (or equivalent) to which you wish to connect.
The preferred interface is
interface is included for those people attached to the
command of version 7. This manual page
Typed characters are normally transmitted directly to the remote
machine (which does the echoing as well). A tilde (`~') appearing
as the first character of a line is an escape signal; the following
.It Ic \&~^D No or Ic \&~ .
Drop the connection and exit
(you may still be logged in on the
implies change to your home directory).
Escape to a shell (exiting the shell will
Copy file from local to remote.
prompts for the name of a local file to transmit.
Copy file from remote to local.
prompts first for the name of the file to be sent, then for
a command to be executed on the remote machine.
.It Ic \&~p Ar from Op Ar to
host. The put command causes the remote
system to run the command string ``cat > 'to''', while
file. If the ``to'' file isn't specified the ``from'' file name is used.
This command is actually a
specific version of the ``~>'' command.
.It Ic \&~t Ar from Op Ar to
Take a file from a remote
As in the put command the ``to'' file
defaults to the ``from'' file name if it isn't specified.
executes the command string ``cat 'from';echo ^A'' to send the file to
Pipe the output from a remote command to a local
The command string sent to the local
system is processed by the shell.
Pipe the output from a local
process to the remote host.
The command string sent to the local
system is processed by the shell.
Fork a child process on the local system to perform special protocols
such as \s-1XMODEM\s+1. The child program will be run with the following
somewhat unusual arrangement of file descriptors:
For systems which don't support the
call the break is simulated by a sequence of line speed changes
Set a variable (see the discussion below).
(only available with job control).
Stop only the ``local side'' of
(only available with job control);
the side that displays output from the remote host, is left running.
Get a summary of the tilde escapes
to find how to reach a particular
system and to find out how it should operate while talking
Each system has a default baud rate with which to
establish a connection. If this value is not suitable, the baud rate
to be used may be specified on the command line, e.g.
establishes a connection it sends out a
connection message to the remote system; the default value, if any,
prompts for an argument (e.g. during setup of
a file transfer) the line typed may be edited with the standard
erase and kill characters. A null line in response to a prompt,
or an interrupt, will abort the dialogue and return you to the
guards against multiple users connecting to a remote system
by opening modems and terminal lines with exclusive access,
and by honoring the locking protocol used by
provides a running count of the number of lines transferred.
When using the ~> and ~< commands, the ``eofread'' and ``eofwrite''
variables are used to recognize end-of-file when reading, and
specify end-of-file when writing (see below). File transfers
normally depend on tandem mode for flow control. If the remote
system does not support tandem mode, ``echocheck'' may be set
should synchronize with the remote system on the echo of each
must dial a phone number to connect to a system it will print
various messages indicating its actions.
Racal-Vadic 831 auto-call-units;
Ventel 212+, Racal-Vadic 3451, and
Bizcomp 1031 and 1032 integral call unit/modems.
which control its operation.
Some of these variables are read-only to normal users (root is allowed
to change anything of interest). Variables may be displayed
and set through the ``s'' escape. The syntax for variables is patterned
as an argument to the set command displays all variables readable by
the user. Alternatively, the user may request display of a particular
variable by attaching a `?' to the end. For example ``escape?''
displays the current escape character.
Variables are numeric, string, character, or boolean values. Boolean
variables are set merely by specifying their name; they may be reset
by prepending a `!' to the name. Other variable types are set by
concatenating an `=' and the value. The entire assignment must not
have any blanks in it. A single set command may be used to interrogate
as well as set a number of variables.
Variables may be initialized at run time by placing set commands
(without the ``~s'' prefix in a file
in one's home directory). The
to display the sets as they are made.
Certain common variables have abbreviations.
The following is a list of common variables,
their abbreviations, and their default values.
(bool) Discard unprintable characters when a session is being scripted;
(num) The baud rate at which the connection was established;
(num) When dialing a phone number, the time (in seconds)
to wait for a connection to be established; abbreviated
(bool) Synchronize with the remote host during file transfer by
waiting for the echo of the last character transmitted; default is
(str) The set of characters which signify an end-of-tranmission
during a ~< file transfer command; abbreviated
(str) The string sent to indicate end-of-transmission during
a ~> file transfer command; abbreviated
(str) The set of characters which indicate an end-of-line.
will recognize escape characters only after an end-of-line.
(char) The command prefix (escape) character; abbreviated
(str) The set of characters which should not be discarded
due to the beautification switch; abbreviated
default value is ``\et\en\ef\eb''.
(char) The character used to force literal data transmission;
(num) The amount of data (in bytes) to buffer between file system
writes when receiving files; abbreviated
(str) The name of the host to which you are connected; abbreviated
(char) The character which indicates an end-of-line on the remote
default value is `\en'. This value is used to synchronize during
data transfers. The count of lines transferred during a file transfer
command is based on receipt of this character.
(bool) Upper case mapping mode; abbreviated
When this mode is enabled, all lower case letters will be mapped to
for transmission to the remote machine.
(char) The input character used to toggle upper case mapping mode;
(str) The name of the file in which a session script is recorded;
default value is ``tip.record''.
(bool) Session scripting mode; abbreviated
will record everything transmitted by the remote machine in
the script record file specified in
switch is on, only printable
characters will be included in
the script file (those characters betwee 040 and 0177). The
is used to indicate characters which are an exception to the normal
(bool) Expand tabs to spaces during file transfers; abbreviated
Each tab is expanded to 8 spaces.
(bool) Verbose mode; abbreviated
When verbose mode is enabled,
prints messages while dialing, shows the current number
of lines transferred during a file transfer operations,
uses the following environment variables:
(str) The name of the shell to use for the ~! command; default
value is ``/bin/sh'', or taken from the environment.
(str) The home directory to use for the ~c command; default
value is taken from the environment.
Check for a default host if none specified.
.Bl -tag -width /var/spool/uucp/LCK..* -compact
Global system descriptions.
Global phone number data base.
Private system descriptions.
.It Pa /var/spool/uucp/LCK..*
Lock file to avoid conflicts with
Diagnostics are, hopefully, self explanatory.
The full set of variables is undocumented and should, probably, be