Xref: utzoo comp.unix.xenix:5181 comp.unix.questions:11969 Path: utzoo!attcan!uunet!pdn!boake2!sherpa!rac From: rac@sherpa.UUCP (Roger A. Cornelius) Newsgroups: comp.unix.xenix,comp.unix.questions Subject: Thanks (was: How to determine file being redirected to in C) Keywords: Thanks Message-ID: <12@sherpa.UUCP> Date: 2 Mar 89 03:13:56 GMT Distribution: na Organization: Personal System Computing, St. Petersburg, FL Lines: 15 Just wanted to say thanks for all the replies I received to my question about determining if output is being redirected to a file, from within a C program. Basically everyone gave me the same answer, that is to use stat or fstat. I didn't need to know the name of the file being redirected to as many people thought, only whether the input/output was being redirected. From the replies I got, this is a good thing. Thanks again, Roger -- Roger Cornelius rac@sherpa uunet!sherpa!rac