tip, cu - connect to a remote system
tip [-nv] [-speed] [system-name]
cu [-ehot] [-a acu] [-l line] [-s speed] [-#] [phone-number]
tip and cu 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
to which you wish to connect. The preferred interface is
tip. The cu
interface is included for those people attached to the
``call UNIX'' command
of Version 7 AT&T UNIX. This manual page describes only tip.
The options are as follows:
Set the acu.
-e For cu, use even parity.
-h For cu, echo characters locally (half-duplex mode).
For cu, specify the line to use. Either of the forms
like tty00 or
/dev/tty00 are permitted.
-n No escape (disable tilde).
-o For cu, use odd parity.
For cu, set the speed of the connection. Defaults to
-t For cu, connect via a hard-wired connection to a host
on a dial-up
-v Set verbose mode.
For cu, if both -e and -o are given, then no parity is used.
This is the
If speed is specified it will override any baudrate specified in the system
description being used.
If neither speed nor system-name are specified, system-name
will be set
to the value of the HOST environment variable.
If speed is specified but system-name is not, system-name
will be set to
a value of 'tip' with speed appended. e.g. tip -1200 will
name to 'tip1200'.
Typed characters are normally transmitted directly to the
(which does the echoing as well). A tilde (`~') appearing
as the first
character of a line is an escape signal; the following are
~^D or ~. Drop the connection and exit (you may
still be logged
in on the remote machine).
~c [name] Change directory to name (no argument implies change to
your home directory).
~! Escape to a shell (exiting the shell will
return you to
~> Copy file from local to remote. tip
prompts for the
name of a local file to transmit.
~< Copy file from remote to local. tip
prompts first for
the name of the file to be sent, then for
a command to
be executed on the remote machine.
~p from [to]
Send a file to a remote UNIX host. The
causes the remote UNIX system to run the
``cat > 'to''', while tip sends it the
If the ``to'' file isn't specified the
name is used. This command is actually a
version of the ~> command.
~t from [to]
Take a file from a remote UNIX host. As
in the put
command the ``to'' file defaults to the
name if it isn't specified. The remote
the command string ``cat 'from';echo ^A''
to send the
file to tip.
~| Pipe the output from a remote command to a
process. The command string sent to the
system is processed by the shell.
~$ Pipe the output from a local UNIX process
to the remote
host. The command string sent to the local UNIX system
is processed by the shell.
~C Fork a child process on the local system
special protocols such as XMODEM. The
will be run with the following somewhat
of file descriptors:
0 <-> local tty in
1 <-> local tty out
2 <-> local tty out
3 <-> remote tty in
4 <-> remote tty out
~# Send a BREAK to the remote system. For
don't support the necessary ioctl() call
the break is
simulated by a sequence of line speed
changes and DEL
~s Set a variable (see the discussion below).
~v List all variables and their values (if
~^Z Stop tip (only available with job control).
~^Y Stop only the ``local side'' of tip (only
with job control); the ``remote side'' of
tip, the side
that displays output from the remote host,
is left running.
~? Get a summary of the tilde escapes.
To find the system description and thus the operating characteristics of
system-name, tip searches for a system description with a
to system-name. The search order is
1. If the environment variable REMOTE does not start
with a `/'
it is assumed to be a system description, and is
2. If the environment variable REMOTE begins with a
`/' it is assumed
to be a path to a remote(5) database, and
database is searched.
3. The default remote(5) database, /etc/remote, is
See remote(5) for full documentation on system descriptions.
The br capability is used in system descriptions to specify
the baud rate
with which to establish a connection. If the value specified is not
suitable, the baud rate to be used may be given on the command line,
e.g., `tip -300 mds'.
When tip establishes a connection it sends out the connection message
specified in the cm capability of the system description being used.
When tip prompts for an argument (e.g., during setup of a
the line typed may be edited with the standard erase and
A null line in response to a prompt, or an interrupt, will
abort the dialogue
and return you to the remote machine.
tip guards against multiple users connecting to a remote
system by opening
modems and terminal lines with exclusive access, and by
locking protocol used by uucico.
During file transfers tip 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
and specify end-of-file when writing (see below). File
depend on hardwareflow or tandem mode for flow control.
If the remote
system does not support hardwareflow or tandem mode,
``echocheck'' may be
set to indicate tip should synchronize with the remote system on the echo
of each transmitted character.
When tip must dial a phone number to connect to a system it
various messages indicating its actions. tip supports a variety of autocall
units and modems with the at capability in system descriptions.
Support for Ventel 212+ (ventel), Hayes AT-style (hayes),
Courier (courier), Telebit T3000 (t3000) and Racal-Vadic 831
units is enabled by default.
Support for Bizcomp 1031[fw] (biz31[fw]), Bizcomp 1022[fw]
DEC DF0-AC (df0), DEC DN-11 (dn11) and Racal-Vadic
units can be added by recompiling tip with the appropriate
Note that if support for both the Racal-Vadic 831 and 3451
they are referred to as the v831 and v3451 respectively. If
only one of
the two is supported, it is referred to as vadic.
VARIABLES [Toc] [Back]
tip maintains a set of variables 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
`s' escape. The syntax for variables is patterned after
Mail(1). Supplying ``all'' as an argument to the set command displays
all variables readable by the user. Alternatively, the user
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.
variables are set merely by specifying their name; they may
be reset by
prepending a `!' to the name. Other variable types are set
an `=' and the value. The entire assignment must not
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
.tiprc in one's
home directory). The -v option causes tip to display the
sets as they
are made. Certain common variables have abbreviations. The
a list of common variables, their abbreviations, and their
beautify (bool) Discard unprintable characters when a
session is being
scripted; abbreviated be.
baudrate (num) The baud rate at which the connection
dialtimeout (num) When dialing a phone number, the time
(in seconds) to
wait for a connection to be established; abbreviated dial.
echocheck (bool) Synchronize with the remote host during
by waiting for the echo of the last character transmitted;
default is off.
eofread (str) The set of characters which signify an
during a ~< file transfer command; abbreviated
eofwrite (str) The string sent to indicate end-oftransmission during
a ~> file transfer command; abbreviated
eol (str) The set of characters which indicate an
tip will recognize escape characters only after an end-ofline.
escape (char) The command prefix (escape) character;
es; default value is `~'.
exceptions (str) The set of characters which should not
due to the beautification switch; abbreviated
value is ``0f.
force (char) The character used to force literal data transmission;
abbreviated fo; default value is `^P'.
framesize (num) The amount of data (in bytes) to buffer
filesystem writes when receiving files; abbreviated fr.
hardwareflow (bool) Whether hardware flow control (CRTSCTS)
for the connection; abbreviated hf; default
value is `off'.
host (str) The name of the host to which you are
prompt (char) The character which indicates an endof-line on the
remote host; abbreviated pr; default value is
value is used to synchronize during data
count of lines transferred during a file
is based on receipt of this character.
raise (bool) Upper case mapping mode; abbreviated
value is off. When this mode is enabled, all
letters will be mapped to uppercase by tip for
to the remote machine.
raisechar (char) The input character used to toggle uppercase mapping
mode; abbreviated rc; default value is `^A'.
record (str) The name of the file in which a session
recorded; abbreviated rec; default value is
script (bool) Session scripting mode; abbreviated sc;
off. When script is true, tip will record everything
transmitted by the remote machine in the
script record file
specified in record. If the beautify switch
is on, only
printable ASCII characters will be included in
file (those characters between 040 and 0177).
exceptions is used to indicate characters
which are an exception
to the normal beautification rules.
tabexpand (bool) Expand tabs to spaces during file
tab; default value is false. Each tab
to 8 spaces.
tandem (bool) Use XON/XOFF flow control to throttle
data from the
remote host; abbreviated ta. The default value is true unless
the nt capability has been specified in
in which case the default value is false.
verbose (bool) Verbose mode; abbreviated verb; default
When verbose mode is enabled, tip prints messages while dialing,
shows the current number of lines
a file transfer operations, and more.
SHELL The name of the shell to use for the ~! command;
HOME The home directory to use for the ~c command.
HOST The default value for system-name if none is
the command line.
REMOTE A system description, or an absolute path to a
PHONES A path to a phones(5) database.
/etc/remote global remote(5) database
/etc/phones default phones(5) file
~/.tiprc initialization file
tip.record record file
/var/log/aculog line access log
/var/spool/lock/LCK..* lock file to avoid conflicts with
The tip command appeared in 4.2BSD.
The full set of variables is undocumented and should, probably, be pared
OpenBSD 3.6 September 9, 2001
[ Back ]