uugetty(1M) uugetty(1M)
NAME
uugetty - set terminal type, modes, speed, and line discipline
SYNOPSIS
/usr/lib/uucp/uugetty [-t timeout] [-r] line [speed [type [linedisc]]]
/usr/lib/uucp/uugetty -c file
DESCRIPTION
The uugetty command is identical to getty(1M) but changes have
been made to support using the line for uucico, cu, and ct;
that is, the line can be used in both directions. The uugetty
allows users to login, but if the line is free, uucico, cu, or
ct can use it for dialing out.
Files
/etc/gettydefs
/etc/issue
USAGE
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 RETURN characters may be
required before the login message is output. 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.
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:
30:2:respawn:/usr/lib/uucp/uugetty -r -t 60 tty12 1200
The meanings of the available options are:
-t timeout Specifies that uugetty should exit if the open
on the line succeeds and there is no response
to the login prompt in timeout seconds.
timeout is replaced by an integer.
Copyright 1994 Novell, Inc. Page 1
uugetty(1M) uugetty(1M)
-r Causes uugetty to wait to read a character
before it puts out the login message, thus
preventing two uugettys from looping. An entry
for an intelligent modem or direct line that
has a uugetty on each end must use this option.
line Defines the name of the line to which uugetty
will attach itself. The line name will point
to an entry in the /dev directory. For
example, /dev/tty03.
speed Defines the entry to use from the
/etc/gettydefs file. The entry defines the
line speed, the login message, the initial tty
setting, and the next speed to try if the user
says the speed is inappropriate (by sending a
break character). The default speed is 300.
type Defines the type of terminal connected to the
line. The default terminal is none,
representing a normal terminal unknown to the
system.
linedisc Sets the line discipline to use on the line.
The default is LDISC0, which is the only one
currently compiled into the operating system.
-c file Checks the speed and tty definitions in file
and sends the results to standard output.
Unrecognized modes and improperly constructed
entries are reported. For correct entries,
flag values are printed. file is replaced by
/etc/gettydefs or a similarly structured file.
Warnings
ct does not work when uugetty is used with an intelligent
modem such as Penril or Ventel.
REFERENCES
ct(1C), cu(1C), getty(1M), gettydefs(4), init(1M), inittab(4),
ioctl(2), login(1), tty(7), uucico(1M)
Copyright 1994 Novell, Inc. Page 2