Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!dimacs.rutgers.edu!rutgers!usc!samsung!sol.ctr.columbia.edu!cunixf.cc.columbia.edu!cubmol!ping From: ping@cubmol.bio.columbia.edu (Shiping Zhang) Newsgroups: comp.unix.programmer Subject: How to determine the destination of standard output? Message-ID: <1991Feb6.204432.2850@cubmol.bio.columbia.edu> Date: 6 Feb 91 20:44:32 GMT Reply-To: ping@cubmol.bio.columbia.edu (Shiping Zhang) Followup-To: ping@cubmol.bio.columbia.edu (Shiping Zhang) Organization: Dept. of Biology, Columbia Univ., New York, NY Lines: 6 I'm not sure if this subject has be discussed before. I want to know if there is a way to tell within a program where its standard output goes. More specifically, if the output goes to the terminal screen, or goes to a pipe, or is redirected into a disk file. Thanks for any info. -ping