ct(1) CLIX ct(1)
NAME
ct - Spawns getty process to a remote terminal
SYNOPSIS
ct [-wn] [-xn] [-] [-v] [-sspeed] telno ...
DESCRIPTION
The ct command dials the telephone number of a modem that is attached to a
terminal, and spawns a getty process to that terminal. The telno argument
is a telephone number, with equal signs for secondary dial tones and minus
signs for delays at appropriate places. (The set of legal characters for
telno is 0 thru 9, -, =, *, and #. The maximum length telno is 31
characters). If more than one telephone number is specified, ct will try
each in succession until one answers; this is useful for specifying
alternate dialing paths.
The ct command will try each line listed in the file /usr/lib/uucp/Devices
until it finds an available line with appropriate attributes or runs out
of entries. If there are no free lines, ct will ask if it should wait for
one, and if so, for how many minutes it should wait before it gives up.
The ct command will continue to try to open the dialers at one-minute
intervals until the specified limit is exceeded. The dialogue may be
overridden by specifying the -wn flag, where n is the maximum number of
minutes that ct is to wait for a line.
The -xn flag is used for debugging; it produces a detailed output of the
program execution on stderr. The debugging level, n, is a single digit;
-x9 is the most useful value.
Normally, ct will hang up the current line, so the line can answer the
incoming call. The -h flag will prevent this action. The -h flag will
also wait for the termination of the specified ct process before returning
control to the user's terminal. If the -v flag is used, ct will send a
running narrative to stderr.
The data rate may be set with the -s flag, where speed is expressed in
baud. The default rate is 1200.
After the user on the destination terminal logs out, there are two things
that could occur depending on what type of getty is on the line (getty or
uugetty). For the first case, ct prompts, Reconnect?~. If the response
begins with the letter n, the line will be dropped; otherwise, getty will
be started again and the login: prompt will be displayed. In the second
case, there is already a getty (uugetty) on the line, so the login:
message will appear.
To log out properly, the user must key in <Ctrl-D>. Of course, the
destination terminal must be attached to a modem that can answer the
2/94 - Intergraph Corporation 1
ct(1) CLIX ct(1)
telephone.
FILES
/usr/lib/uucp/Devices
/usr/adm/ctlog
NOTES
For a shared port, one used for both dial-in and dial-out, the uugetty
command running on the line must have the -r flag specified (see uugetty).
RELATED INFORMATION
Commands: cu(1), login(1), uucp(1), getty(8), uugetty(8)
2 Intergraph Corporation - 2/94