How do I tell if STDIN is a PIPE?

Boyd Roberts boyd at prl.dec.com
Tue May 28 19:27:16 AEST 1991


In article <1991May27.022727.9860 at leland.Stanford.EDU>, dkeisen at leland.Stanford.EDU (Dave Eisen) writes:
> ... If
> you seek and it fails and errno is ESPIPE, you know that stdin is 
> a pipe.
> 

Do me a favour, man stat(2).


Boyd Roberts			boyd at prl.dec.com

``When the going gets wierd, the weird turn pro...''



More information about the Comp.unix.questions mailing list