How to find out if stdout is piped?

Doug Gwyn gwyn at smoke.BRL.MIL
Thu Feb 15 02:38:11 AEST 1990


In article <7638 at tank.uchicago.edu> phd_ivo at gsbacd.uchicago.edu writes:
>find out if stdout is hooked to a pipe, or redirected into a file?

use fstat(1,...)



More information about the Comp.unix.questions mailing list