This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Pipe "make" stdout and stderr to process?


How do I run "make" so I can pass both stdout and stderr to a filtering
process?  I'm familiar with writing the output to a file, taking both stdout
and stderr ("make > make.out 2>&1"), but I don't see how to get this to work
if I just want to pipe the output (both stdout and stderr) to another
process.  When I do "make | filterprog 2>&1", it seems to have no effect, in
that it appears as if the stderr from "make" goes directly to the console.
>From reading the "bash" man page, it almost seems as if redirection doesn't
apply to piping.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]