HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)
c
cuegetty(1M) cuegetty(1M)
(Series 800 Only)
NAME
cuegetty - set terminal type, modes, speed, and line discipline for CUE
SYNOPSIS
/usr/sbin/cuegetty
[-L nls_language][-T terminal_type][
-h][
-t timeout] line [speed]
DESCRIPTION
The
cuegetty command, which is very similar to getty(1M), is the second process in the series, (init-
cuegetty-cue-work session) that ultimately connects a user with the HP-UX CUE system. It is invoked by
init to monitor the terminal lines configured on a system (see init(1M)). Each
cuegetty process resets
its process group using
setpgrp, opens a particular terminal line, and usually sleeps in the
open() until
the machine senses a hardware connection for the terminal. When
open() returns, cuegetty attempts
to adapt the system to the terminal speed and type, and displays the contents of the
/etc/issue file, if
it exists. Lastly,
cuegetty invokes cue which displays the Login screen and performs user validation
(see cue(1)).
To start cuegetty, an entry for
cuegetty should be placed in the /etc/inittab file. A typical
CUE entry in the
/etc/inittab file resembles the following:
cue:2:respawn:/usr/sbin/cuegetty -L fr_FR.roman8 -h tty0p1
See /usr/newconfig/etc/cue.inittab
for an example /etc/inittab file. See cue(1) for more
details on the CUE system.
Configuration Options and Arguments
cuegetty recognizes the following arguments:
line Name of a tty line in /dev to which cuegetty is to attach itself. cuegetty uses this
string as the name of a file in the
/dev directory to open for reading and writing. By
default cuegetty forces a hangup on the line by setting the speed to zero before setting
the speed to the default or specified speed. However, when cuegetty is run on a direct
port, cuegetty 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)).
-L nls_language is used to set the language for the CUE login screens. If the message
catalog, cue.cat, does not exist for nls_language , the default native language, C,
is used.
-T terminal_type is used to specify the type of terminal that cuegetty will be ini-
tiated on. Allowed values are vt320, vt100, wy60, and hp. The default is
hp.
-h Tells cuegetty not to force a hangup on the line before setting the speed to the default
or specified speed.
-t timeout cuegetty exits if the open on the line succeeds and nothing is typed within timeout
seconds.
speed A label to a speed and tty definition in the file
/etc/gettydefs
. This definition tells
cuegetty 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 should the user indicate that the
speed is inappropriate (by typing a break character). The default speed is 300 baud.
When no optional arguments appear on the command line, cuegetty sets the terminal interface as
follows:
• Interface speed: 300 baud
• Raw mode (awaken on every character)
• Echo suppressed
• Parity: either
• New-line characters: convert to carriage-return, line-feed pair
• Expand tabs on the standard output
• Type login message then read user’s name, one character at a time
• If a null character (or framing error) is received, assumed it to be the result of the user push-
ing the "break" key. This causes cuegetty to attempt the next speed in the series. The
Section 1M−−158 Hewlett-Packard Company − 1 − HP-UX 11i Version 1: September 2005