uugetty(1m) DG/UX 4.30 uugetty(1m)
NAME
uugetty - set terminal type, modes, speed, and line
discipline
SYNOPSIS
/usr/lib/uucp/uugetty [ -h ] [ -t timeout ] [ -r ] line
[ speed [ type [ linedisc ] ] ]
/usr/lib/uucp/uugetty -c file
DESCRIPTION
uugetty is identical to getty(1m) but includes changes that
have been made to support using the line for uucico, cu, and
ct. As a result, the line can be used in both directions.
The uugetty will allow users to login, but if the line is
free, uucico, cu, or ct can use it for dialing out. The
implementation depends on the fact that uucico, cu, and ct
create lock files when devices are used. When the "open()"
returns (or the first character is read when -r option is
used), the status of the lock file indicates whether the
line is being used by uucico, cu, ct, or someone trying to
login. Note that in the -r case, several <carriage-return>
characters may be required before the login message is
output. The human users will be able to handle this slight
inconvenience. Uucico trying to login will have to be told
by using the following login script:
"" \r\d\r\d\r\d\r in:--in: . . .
where the . . . is whatever would normally be used for the
login sequence.
An entry for an intelligent modem or direct line that has a
uugetty on each end must use the -r option. (This causes
uugetty to wait to read a character before it puts out the
login message, thus preventing two uugettys from looping.)
If there is a uugetty on one end of a direct line, there
must be a uugetty on the other end as well. Here is an
/etc/inittab entry using uugetty on an intelligent modem or
direct line:
tt30::respawn:/usr/lib/uucp/uugetty -r -t 60 tty12 1200
Line is the name of a tty line in /dev to which uugetty is
to attach itself. Uugetty uses line as the name of a file
in the /dev directory to open for reading and writing.
Unless you invoke uugetty with the -h flag, uugetty forces a
hangup on the line by setting the speed to zero before
setting the speed to the default or specified speed.
The -t flag, plus timeout in seconds, specifies that uugetty
should exit if the open on the line succeeds and no one
types anything in the specified number of seconds.
Licensed material--property of copyright holder(s) Page 1
uugetty(1m) DG/UX 4.30 uugetty(1m)
The optional second argument, speed, is a label to a speed
and tty definition in the file /etc/gettydefs. This
definition tells uugetty at what speed to initially run,
what the login message should look like, what the initial
tty settings are, and what speed to try next if the user
indicates that the speed is inappropriate (by typing a
<break> character). The default speed is 300 baud.
The optional third argument, type, is a character string
describing to uugetty what type of terminal is connected to
the line in question - in this case the default terminal
type. The default terminal type is any Data General
terminal.
The optional fourth argument, linedisc, is a character
string describing which line discipline to use in
communicating with the terminal. The hooks for line
disciplines are available in the operating system, but the
only one presently available is the default line discipline,
LDISC0.
FILES
/etc/gettydefs
/etc/issue
SEE ALSO
uucico(1m), getty(1m), init(1m), tty(7).
ct(1), cu(1), login(1) in the User's Reference for the DG/UX
System.
ioctl(2), gettydefs(4), inittab(4) in the Programmer's
Reference for the DG/UX System.
BUGS
Ct will not work when uugetty is used with an intelligent
modem such as Penril or Ventel.
Licensed material--property of copyright holder(s) Page 2