HP-UX Reference (11i v2 07/12) - 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
getty is a program that is invoked by
init (see init(1M)). It is the second process in the series,
init>getty>login>shell, that ultimately connects a user with the HP-UX system. Initially, if the
/etc/issue file exists, getty prints its contents to the user’s terminal, followed by the login message
field for the entry it is using from the
/etc/gettydefs
file. getty reads the user’s login name and
invokes the
login command with the user’s name as login arguments (see login(1)). While reading the
name,
getty attempts to adapt the system to the speed and type of terminal being used. See Operation
below for more detail.
Options and Operands
getty recognizes the following options and operands:
line The name of a tty line in /dev to which getty is to attach itself.
getty uses this
string as the name of a file in the
/dev directory to open for reading and writing. By
default, getty forces a hangup on the line by setting the speed to zero before setting
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)).
-f Tells getty to get the default settings for special control characters from the
/dev/ttyconf file.
Use the stty command to configure the settings by changing the control characters
in /dev/ttyconf (see stty(1)).
This flexibility allows the user to login by means of getty and type a #,
@, and so on,
as part of the login name or arguments, if these are not the special control characters
defined in
/dev/ttyconf .
-h Tells getty not to force a hangup on the line before setting the speed to the default
or specified speed.
-t timeout Tells getty to exit if the open on the line succeeds and no one types anything within
timeout seconds.
speed The label of a speed and tty definition in the file /etc/gettydefs
. 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 should the user indicate
that the speed is inappropriate by typing a break character. The default speed is 300
baud.
type A character string describing what type of terminal is connected to the line in ques-
tion.
getty understands the following types:
none default
vt61 DEC vt61
vt100 DEC vt100
hp45 Hewlett-Packard HP2645
c100 Concept 100
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.
HP-UX 11i Version 2: December 2007 Update 1 Hewlett-Packard Company 337