On Fri, Nov 02, 2001 at 01:57:36AM -0500, Randolph Fritz wrote: > On Thu, Nov 01, 2001 at 10:24:37PM -0800, Jacob Meuser wrote: > > > > Pipe redirection doesn't work. If you read the manpage, it should be > > clear why this is. > > > > In fact, it does. > > cat bah 2>&1 |cat >j > > will leave an error message in "j", assuming that there is no file > named "bah". > > Redirecting standard error is one of the most valuable shell tricks > for error catching.
perhaps I should have been more precise: you can't pipe stderr to one command, and stdin to another. In testing a port of gimp-print for OpenBSD I'm working on, I just did: make 2>&1 |tee ~/tmp/gp_log > ~/tmp/gp_err ~/tmp/gp_log and ~/tmp/gp_err contain the same data (both have error messages) -- <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
