z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


isatty

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Read syntax diagramSkip visual syntax diagram
>>-isatty--fd--------------------------------------------------><

Function

isatty invokes the isatty callable service to determine if a file is a terminal.

Parameters

fd
The file descriptor (a number) for the file.

Usage notes

Upon return, RETVAL contains either 0 (not a tty) or 1 (a tty).

Example

To test if file descriptor 0 is a terminal:
"isatty 0"

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014