Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > T

tty(1)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

tty, pty — get the name of the terminal

SYNOPSIS

tty [-s]

pty [-s]

DESCRIPTION

tty and pty print the path name of the user's terminal. The -s 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 tty 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 pty are:

2

Invalid options were specified,

1

The standard input is not a pseudo-terminal,

0

The standard input is a pseudo-terminal.

DIAGNOSTICS

not a tty

standard input is not a terminal or pseudo-terminal for tty.

not a pty

standard input is not a pseudo-terminal for pty.

AUTHOR

tty was developed by AT&T. pty was developed by HP.

STANDARDS CONFORMANCE

tty: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.