Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getty(1M) — DG/UX R4.11MU05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ct(1)

login(1)

init(1M)

sttydefs(1M)

ttymon(1M)

uname(2)

inittab(4)

ttydefs(4)

termio(7)

ttcompat(7)



getty(1M)                      DG/UX R4.11MU05                     getty(1M)


NAME
       getty - set terminal type, modes, speed, and line discipline

SYNOPSIS
       /usr/sbin/getty [ -h ] [ -t timeout ] line [ speed [ type [ linedisc
       ] ] ]

   where:
       timeout   A login time limit in seconds.
       line      A TTY device file in the /dev directory.
       speed     The label of an entry in the /etc/ttydefs file.
       type      A value for the TERM variable (obsolete).
       linedisc  The initial line discipline (obsolete).

DESCRIPTION
       getty is a symbolic link to /usr/lib/saf/ttymon.  It is included for
       compatibility with previous releases for the few applications that
       still call getty directly.  getty can be executed only by a process
       with the user ID of 0.

       Initially, getty generates a system identification message from the
       values returned by the uname(2) system call.  Then, if /etc/issue
       exists, getty outputs the file's contents to the user's terminal,
       followed finally by the login prompt.  getty then reads the user's
       login name and invokes the login(1) command with the user's name as
       its argument.

       Initially, getty attempts to adapt the system to the terminal speed
       by using the options and arguments specified on the command line.
       Subsequently, as getty reads the user's name a character at a time,
       it attempts to customize the speed setting.  If a null character (or
       framing error) is received, it is assumed to be the result of the
       user pressing the BREAK key.  This will cause getty to attempt the
       next speed in the series.  The series that getty tries is determined
       by the ``hunt groups'' it finds in /etc/ttydefs [see ttydefs(4)].

       The only required argument is 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.

       Options are:

       -h        specify that no hangup should occur.  If the -h flag is not
                 set, a hangup will be forced by setting the TTY port speed
                 to zero before setting the speed to the default or
                 specified speed.

       -t timeout
                 specify that getty should exit if the open on the line
                 succeeds and no one types a user name on the line within
                 timeout seconds.

       speed     The optional second argument is a label to a speed and TTY
                 definition in the file /etc/ttydefs.  This definition tells
                 getty at what speed to run initially, what the initial TTY
                 settings are, and what speed to try next should the user
                 indicate (by pressing the BREAK key) that the speed is
                 inappropriate.  The default speed is 300 baud.

       type      This argument is obsolete and will be ignored.  (In
                 releases of the DG/UX System prior to Revision 5.4, the
                 optional third argument was a character string that was
                 assigned to the TERM variable and exported.)

       linedisc  This argument is obsolete and will be ignored.  (In
                 releases of the DG/UX System prior to Revision 5.4, the
                 optional fourth argument was a character string describing
                 which line discipline to use in communicating with the
                 terminal.)

       When given no optional arguments, getty specifies the following: the
       speed of the interface is set to 300 baud, any parity is allowed,
       new-line characters are converted to carriage return and line feed,
       and tab expansion is performed on the standard output.

FILES
       /etc/ttydefs  TTY definitions file
       /etc/issue    System identification message file

SEE ALSO
       ct(1), login(1), init(1M), sttydefs(1M), ttymon(1M), uname(2),
       inittab(4), ttydefs(4), termio(7), ttcompat(7).

NOTE
       The following ``check option'' invocation of getty, provided in
       releases of the DG/UX System prior to Revision 5.4, is obsolete and
       no longer supported:

              /usr/sbin/getty -c file

       Instead use the following command to list the contents of the
       /etc/ttydefs file and perform a validity check on the file:

              sttydefs -l


Licensed material--property of copyright holder(s)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026