How to determine the destination of standard output?

Shiping Zhang ping at cubmol.bio.columbia.edu
Thu Feb 7 07:44:32 AEST 1991


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



More information about the Comp.unix.programmer mailing list