Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!wucs1!wugate!wubios!david From: david@wubios.wustl.edu (David J. Camp) Newsgroups: comp.unix.questions Subject: isatty(stdin) usage Keywords: isatty stdin terminal Message-ID: <314@wubios.wustl.edu> Date: 21 Feb 89 02:37:53 GMT Organization: Washington University (St. Louis) Lines: 15 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@wubios.wustl ^ Mr. David J. Camp Internet: david%wubios@wucs1.wustl.edu < * > Box 8067, Biostatistics uucp: uunet!wucs1!wubios!david v 660 South Euclid Washington University Medical School Saint Louis, MO 63110