uugetty - Sets the terminal type, modes, speed, and line.
/usr/lib/uucp/uugetty [-h] [-t time] [-r] [-c file] line [speed_label
Directs that the specified file should be checked instead of the
-h Holds the carrier during the initialization phase; does not hang up.
Specifies a timeout period for login; in other words, the line is
dropped if nothing is typed after time seconds.
-r Specifies that uugetty should wait for a character before it displays a
login message, thus preventing two uugetty commands from looping and
allowing the line to be shared by uucico, cu, and tip.
The uugetty command sets and manages terminals by setting up speed, termi-
nal flags, and the line discipline. If command options are provided,
uugetty adapts the system to those specifications; uugetty prints the login
prompt, waits for the user to enter a username, and invokes the login com-
The uugetty command provides all the features of the getty command, but
also provides support through the -r option for using the line with the
uucico, cu, ct, and tip commands. The line can thereby be used in both
directions. The uugetty command enables users to log in, but if the line
is free, the uucico, cu, ct, and tip commands can be used for dialing out.
The implementation depends on the fact that the uucico, cu, ct, and tip
commands create lock files when devices are used. When uugetty first reads
characters, the status of the lock file indicates whether the line is being
used by uucico, cu, ct, or tip, or by someone trying to log in.
The line argument specifies the /dev/entry file for the terminal line. It
can be entered as a relative pathname or an absolute pathname. The
speed_label argument is a pointer into the /etc/uugettydefs file where the
definitions for speed and other associated flags are located. If this argu-
ment is not specified, uugetty uses the first entry in the file. The ter-
minal argument specifies the name of the terminal type. This argument is
used to set the TERM environment variable for the user who logs in from
this terminal. The line_discipline argument specifies the name of the line
When the -r option is used, the user may have to key several carriage
returns before the login message is displayed. When uucico attempts to log
in, the following login script informs it that several carriage returns may
be necessary before the login message is displayed:
\r\d\r\d\r\d\r in:--in:login sequence
In this script, login sequence is whatever is normally used for the login
An entry for an intelligent modem or direct line that has a uugetty on each
end must use the -r option. The following is an /etc/inittab entry using
uugetty on an intelligent modem or direct line:
30:2:respawn:/usr/lib/uucp/uugetty -r -t 60 tty12 1200
Specifies the command path
The terminal line database file
This file uses the same format as the/etc/gettydefs file.
File that specifies the initialization processes
Lock files used by uugetty, uucico, cu, ct, and tip to keep other com-
mands from using the same terminal line
Commands: ct(1) cu(1), login(1), stty(1), tip(1), getty(8), init(8),
Files: gettydefs(4), inittab(4), tty(7)