SUMMARY: ksh pipe/script question

From: Marc S. Gibian (gibian@stars1.hanscom.af.mil)
Date: Wed Feb 19 1997 - 07:39:30 CST


My original question:

(condensed version) How do I capture both stdout and stderr in a pipe using ksh,
such as in:

make (magic) | tee -a logfile

The answer:

make 2>&1 | tee -a logfile

To quote Casper Dik, "While redirection is left-to-right, pipes are done first".
I knew there had to be a way, but I couldn't figure out how to modify the pipe
descriptors...

Thanks to:

Ric Anderson <ric@rtd.com>
Stephen Harris <sweh@mpn.com>
Casper Dik <casper@holland.Sun.COM>
Robin Marquis <rmarquis@ordsvy.gov.uk>
Kevin.Sheehan@uniq.com.au (Kevin Sheehan {Consulting Poster Child})
Torsten Metzner <tom@plato.uni-paderborn.de>

-Marc

Marc S. Gibian
Telos Consulting Services phone: (617) 377-6350
PRISM/TFS email: gibian@stars1.hanscom.af.mil



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:46 CDT