HP-UX Reference (11i v3 07/02) - 1M System Administration Commands A-M (vol 3)
g
getty(1M) getty(1M)
NAME
getty - set terminal type, modes, speed, and line discipline
SYNOPSIS
/usr/sbin/getty
[-f][-h][-t
timeout] line [speed [type [linedesc]]]
/usr/sbin/getty -c
file
DESCRIPTION
The
getty program is invoked by init (see init(1M)), as the second process in the series,
init >
getty > login > shell, that ultimately connects a user with the HP-UX system.
getty sets the terminal speed and characteristics and prompts for the user’s login information before
passing control to the login program. See Operation below for details.
Options
getty recognizes the following options:
-c file Scan and test file for conformance with the specifications in the gettydefs(4) manpage,
print the results on standard output, and terminate. All other arguments are ignored.
Any unrecognized modes or improperly constructed entries are reported as errors.
For correct entries,
getty prints out the values of the various flags. See ioctl(2) for
an interpretation of values. Note that some values are added to the flags automati-
cally.
-f Get the settings for special control characters from the /dev/ttyconf file. See the
Special Control Characters section.
-h Do not force a hangup on the line before setting the speed.
By default, getty forces a hangup on the line by setting the speed to zero before set-
ting the speed to the default or specified speed. However, when getty is run on a
direct port, getty does not force a hangup on the line since the driver ignores
changes to zero speed on ports open in direct mode (see modem(7)).
-t timeout Exit if the open on the line succeeds and no one types anything within timeout
seconds. The default is to wait indefinitely.
Operands
getty recognizes the following operands:
line The name of a tty device file in /dev to which getty is to attach itself.
getty
opens file /dev/line for reading and writing.
speed A label for a speed and tty definition in the file /etc/gettydefs
. See gettydefs(4).
This definition tells
getty at what speed to run initially, 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 the first entry in /etc/gettydefs
, or 300 baud if
/etc/gettydefs is missing or unusable.
type A character string describing what type of terminal is connected to the line in ques-
tion. getty understands the following types:
none Default
c100 Concept 100
hp45 Hewlett-Packard HP2645
vt61 DEC vt61
vt100 DEC vt100
The default terminal is none, that is, any CRT or normal terminal unknown to the
system. Also, for terminal type to have any meaning, the virtual terminal handlers
must be compiled into the operating system. They are available, but not compiled, in
the default condition.
linedesc A character string describing which line discipline to use when communicating with
the terminal. Hooks for line disciplines are available in the operating system, but
there is only one presently available: the default line discipline, LDISC0.
286 Hewlett-Packard Company − 1 − HP-UX 11i Version 3: February 2007