TIP(1C) BSD TIP(1C)
NAME
tip, cu - connect to a remote system
SYNOPSIS
tip [ -v ] [ -speed ] system-name
tip [ -v ] [ -speed ] phone-number
cu phone-number [ -t ] [ -s speed ] [ -a acu ] [ -l line ] [ -# ]
DESCRIPTION
tip and cu establish a full-duplex connection to another machine, giving
the appearance of being logged in directly on the remote CPU. Naturally,
you must have a login (or equivalent) on the machine 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. This manual page
describes only tip.
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; valid commands are listed below.
tip uses the file /etc/remote to find how to reach a particular system
and to find out how it should operate while talking to the system; refer
to remote(5) for a full description.
When tip establishes a connection, it sends out a connection message to
the remote system; the default value, if any, is defined in /etc/remote.
When tip 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 (or an interrupt) in response to a prompt aborts the dialogue
and returns 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 honoring
the locking protocol used by uucp(1C).
During file transfers tip provides a running count of the number of lines
transferred. When you use 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, set the echocheck variable to indicate that 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 will print
various messages indicating its actions. tip supports the Ventel 212+,
Racal-Vadic 3451, and Bizcomp 1031 and 1032 integral call unit/modems.
COMMANDS
~CTRL/D Drop the connection and exit. You may still be logged in on
the remote machine. The ~. command has the same effect.
~c [name] Change directory to name. No argument implies your home
directory.
~! Escape to a shell; exiting the shell will return you to tip.
~> 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 put command causes
the remote UNIX system to run the command string
cat > 'to'
while tip sends it the from file. If the to filename isn't
specified, the from filename is used. This command is
actually a UNIX-specific 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 from filename if not specified.
The remote host executes the command string
cat 'from';echo ^A
to send the file to tip.
~| Pipe the output from a remote command to a local UNIX
process. The command string sent to the local UNIX 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.
~# Send a BREAK to the remote system. For systems that don't
support the necessary ioctl call, the BREAK is simulated by a
sequence of line speed changes and DEL characters.
~s Set a variable (see the discussion below).
~CTRL/Z Stop tip (only available with job control).
~CTRL/Y Stop only the local side of tip (only available 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.
VARIABLES
tip maintains a set of variables which control its operation. Some of
these variable 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 after vi(1) and Mail(1).
Supplying the word all as an argument to the ~s command displays all
variables readable by the user.
Variables are numeric (num), string (str), character (char), or Boolean
(bool) values. Boolean variables are set merely by specifying their
name; they may be reset by prepending an exclamation mark (!) to the
name. To set other variable types, concatenate an equal sign (=) and the
desired 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. You may initialize variables at run time by placing set
commands (without the ~s prefix) in the file .tiprc in your home
directory.
The following is a list of common variables, their abbreviations, and
their default values.
beautify (bool) Discard unprintable characters when a session is being
scripted; abbreviated be.
baudrate (num) The baud rate at which the connection was established;
abbreviated ba.
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 file transfer by
waiting for the echo of the last character transmitted; default
is off.
eofread (str) The set of characters which signify and end-of-
transmission during a ~< file transfer command; abbreviated
eofr.
eofwrite (str) The string sent to indicate end-of-transmission during a
~> file transfer command; abbreviated eofw.
eol (str) The set of characters that indicate an end-of-line. tip
will recognize escape characters only after an end-of-line.
escape (char) The command prefix (escape) character; abbreviated es;
default value is the tilde (~).
exceptions
(str) The set of characters which should not be discarded by
the beautification switch; abbreviated ex; default value is
"\t\n\f\b".
force (char) The character used to force literal data transmission;
abbreviated fo; default value is CTRL/P.
framesize (num) The amount of data (in bytes) to buffer between file
system writes when receiving files; abbreviated fr.
host (str) The name of the host to which you are connected;
abbreviated ho.
prompt (char) The character which indicates and end-of-line on the
remote host; abbreviated pr; default value is "\n". This value
is used to synchronize during data transfers. The count of
lines transferred during a file transfer command is based on
recipt of this character.
raise (bool) Upper case mapping mode; abbreviated ra; default value
is off. When this mode is enabled, all lowercase letters will
be mapped to uppercase by tip for transmission to the remote
machine.
raisechar (char) The input character used to toggle uppercase mapping
mode; abbreviated rc; default value is CTRL/A.
record (str) The name of the file in which a session script is
recorded; abbreviated rec; default value is tip.record.
script (bool) Session scripting mode; abbreviated sc; default is 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 the script file (those
characters between 040 and 0177). The variable exceptions is
used to indicate characters which are an exception to the
normal beautification rules.
tabexpand (bool) Expand tabs to spaces during file transfers; abbreviated
tab; default value is false. Each tab is expanded to 8 spaces.
verbose (bool) Verbose mode; abbreviated verb; default is true. When
verbose mode is enabled, tip prints messages while dialing,
shows the current number of lines transferred during a file
transfer operations, and more.
SHELL (str) The name of the shell to use for the ~! command; the
default value is taken from the environment, or is /bin/sh.
HOME (str) The home directory to use for the ~c command; the default
value is taken from the environment.
OPTIONS
-v Use verbose mode.
-speed Specify speed as the baud rate for transmission. Overrides the
system default.
FILES
/etc/remote global system descriptions
/etc/phones global phone number data base
${REMOTE} private system descriptions
${PHONES} private phone numbers
~/.tiprc initialization file.
/usr/spool/uucp/LCK..* lock file to avoid conflicts with uucp
NOTES
When you are dialing out using /etc/remote, you should use one of the
/dev/sio devices rather than one of the /dev/tty devices, because the sio
devices do not wait for the carrier. Note, however, the the standard LCK
mechanism won't work if one user is using a /dev/tty device and another
is using a /dev/sio device.
SEE ALSO
remote(5), phones(5)