hpux man page for tty

Query: tty

OS: hpux

Section: 1

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

tty(1)							      General Commands Manual							    tty(1)

NAME
tty, pty - get the name of the terminal
SYNOPSIS
DESCRIPTION
and print the path name of the user's terminal. The option inhibits printing of the terminal path name and any diagnostics, providing a means to test only the exit code.
RETURN VALUE
Exit status codes for are: 2 Invalid options were specified, 1 The standard input is not a terminal or pseudo-terminal, 0 The standard input is a terminal or pseudo-terminal. Exit status codes for are: 2 Invalid options were specified, 1 The standard input is not a pseudo-terminal, 0 The standard input is a pseudo-terminal.
DIAGNOSTICS
standard input is not a terminal or pseudo-terminal for standard input is not a pseudo-terminal for
AUTHOR
was developed by AT&T. was developed by HP.
STANDARDS CONFORMANCE
tty(1)
Related Man Pages
pty(4) - debian
pts(4) - linux
grantpt(3) - netbsd
pty(4) - v7
pty(4) - redhat
Similar Topics in the Unix Linux Community
What is /dev/tty /dev/null and /dev/console
TTY Insane
Stty settings before login
Exits from putty instead of shell script
Automating pbrun /bin/su not working, whenever manually it is working using putty