SUMMARY: ksh pipe/script question

From: Marc S. Gibian (
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

Thanks to:

Ric Anderson <>
Stephen Harris <>
Casper Dik <casper@holland.Sun.COM>
Robin Marquis <> (Kevin Sheehan {Consulting Poster Child})
Torsten Metzner <>


Marc S. Gibian
Telos Consulting Services phone: (617) 377-6350
PRISM/TFS email:

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