TIP(1) | General Commands Manual | TIP(1) |
tip
, cu
—
tip |
[-v ]
- speed
system-name |
tip |
[-v ]
- speed
phone-number |
cu |
[options] phone-number |
cu |
[options] “dir” |
cu |
--help |
tip
and cu
are used to connect
to another system over a serial link. In the era before modern networks, they
were typically used to connect to a modem in order to dial in to a remote
host. They are now frequently used for tasks such as attaching to the serial
console of another machine for administrative or debugging purposes.
The following option is available for
tip
:
-v
The following options are available for
cu
:
-a
acu-c
number-E
char-e
-F
flow-f
-h
-l
line-n
-o
-P
parity-p
acu-s
speed-t
For cu
, if both -e
and -o
are given, then no parity is used. This is
the default behaviour.
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 set system-name to “tip1200”.
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 are recognized:
~^D
or ~
.~c
[name]~!
~>
tip
prompts for
the name of a local file to transmit.~<
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]tip
sends it the
``from'' file. If the ``to'' file isn't specified the ``from'' file name
is used. This command is actually a UNIX specific
version of the ``~>'' command.~t
from [to]tip
.~|
~$
~C
0 | <-> | remote tty in |
1 | <-> | remote tty out |
2 | <-> | local tty out |
~+
cu
.~#
BREAK
to the remote system. For systems
which don't support the necessary ioctl call the
break is simulated by a sequence of line speed changes and
DEL
characters.~s
~^Z
tip
(only available with job control).~^Y
tip
(only
available with job control); the ``remote side'' of
tip
, the side that displays output from the remote
host, is left running.~?
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. 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. ‘tip -300
mds
’.
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 (see
remote(5)).
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 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 honoring the locking protocol used by
uucico(8).
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 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
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 will print various messages indicating its actions.
tip
supports the DEC DN-11 and Racal-Vadic 831
auto-call-units; the DEC DF02 and DF03, Ventel 212+, Racal-Vadic 3451, and
Bizcomp 1031 and 1032 integral call unit/modems.
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 through the ``s'' escape. The syntax for variables is
patterned after vi(1) and
Mail(1). Supplying ``all'' 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
.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 following is a list of common variables, their
abbreviations, and their default values.
tip
will recognize escape characters only after an
end-of-line.tip
for transmission to the remote machine.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.tip
prints messages while dialing, shows the
current number of lines transferred during a file transfer operations, and
more.tip
uses the following environment variables:
SHELL
HOME
HOST
The variables ${REMOTE}
and
${PHONES}
are also exported.
tip
command appeared in
4.2BSD.
November 29, 2006 | NetBSD 9.4 |