MPE/iX Shell and Utilities Reference Manual, Vol 2

tty(1) MPE/iX Shell and Utilities tty(1)
NAME
tty — display terminal name
SYNOPSIS
tty [–s]
DESCRIPTION
Note: The MPE/iX implementation of this utility does not function exactly as this man page de-
scribes. For details, see the MPE/iX NOTES section at the end of this man page.
tty displays the file name of the terminal device associated with the standard input.
Options
tty accepts the following option:
–s does not display the name; the exit status of tty indicates whether or not the stan-
dard input is a terminal.
DIAGNOSTICS
Possible exit status values are:
0 Standard input is a terminal.
1 Standard input is not a terminal.
2 Failure because of unknown command line option, or too many arguments.
Message
Message: not a tty
Cause: The standard input was not associated with a terminal.
Action: Check if tty was mean to be used on a redirected file.
Message: Unknown option "–option"
Cause: You specified an option that is not valid for tty/
Action: Check the DESCRIPTION section for a list of valid tty options.
PORTABILITY
POSIX.2. x/OPEN Portability Guide 4.0. All UNIX systems.
The POSIX standard considers the –s option to be obsolete.
1-618 Commands and Utilities