GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ISATTY (1)

NAME

isatty -- test if a file descriptor is a tty.

    Synopsis

isatty [FILE DESCRIPTOR]

    Description

isatty tests if a file descriptor is a tty.

FILE DESCRIPTOR may be either the number of a file descriptor, or one of the strings stdin, stdout, or stderr.

If the specified file descriptor is a tty, the exit status of the command is zero. Otherwise, the exit status is non-zero. No messages are printed to standard error.

    Examples

From an interactive shell, the commands below exit with a return value of zero:

isatty isatty stdout isatty 2 echo | isatty 1

And these will exit non-zero:

echo | isatty isatty 9 isatty stdout > file isatty 2 2> file

Search for    or go to Top of page |  Section 1 |  Main Index


Version 2.2.0 ISATTY (1) Mon Jul 6 2015

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.