tty man page on IRIX

Printed from http://www.polarhome.com/service/man/?qf=tty&af=0&tf=2&of=IRIX



TTY(1)									TTY(1)

NAME
     tty - get the name of the terminal

SYNOPSIS
     tty [ -l ] [ -s ]

DESCRIPTION
     tty prints the path name of the user's terminal.

     -l	  prints the synchronous line number to which the user's terminal is
	  connected, if it is on an active synchronous line.

     -s	  inhibits printing of the terminal path name, allowing one to test
	  just the exit code.

				    EXIT CODES
		      2	  if invalid options were specified,
		      0	  if standard input is a terminal,
		      1	  otherwise.

DIAGNOSTICS
     ``not on an active synchronous line'' if the standard input is not a
     synchronous terminal and -l is specified.
     ``not a tty'' if the standard input is not a terminal and -s is not
     specified.

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net