isatty(stdin) usage
David J. Camp
david at wubios.wustl.edu
Tue Feb 21 12:37:53 AEST 1989
I am trying to use this invokation:
if (isatty (stdin))
to detect whether a C program has been called interactively or with
redirection. It does not work. Can anyone suggest a better way, or
explain why it does not work?
I am using a Sun 3/260 running SunOS 4.0.1.
-David-
--
Bitnet: david at wubios.wustl ^ Mr. David J. Camp
Internet: david%wubios at wucs1.wustl.edu < * > Box 8067, Biostatistics
uucp: uunet!wucs1!wubios!david v 660 South Euclid
Washington University Medical School Saint Louis, MO 63110
More information about the Comp.unix.questions
mailing list