[H-GEN] stderr redirection
Clinton Roy
clinton.roy at gmail.com
Thu May 28 22:53:34 EDT 2009
Hey folks.
I'm using a continuous integration service called bitten, it plugs
into trac quite nicely.
One of the steps in the bitten recipe is a "make all" step. Bitten
will take a log of stdout and stderr of this, so that you can easily
work out why a build has failed.
As a further step to this, I've written a filter that takes gcc's
warnings and stores them in bitten's database. Gcc writes errors to
stderr, so I'm using:
make all 2> errors.txt
which works fine for the error filter, but it means that bitten does
not get to see stderr, thus when a build fails the reason for it is
hidden.
I'd like some help to get a sh snippet such that bitten will get to
see stdout and stderr as normal, but stderr will also get stored in
errors.txt
I've tried a few things, like:
exec 3>just.stderr
make all 3>&2
and although just.stderr gets created, none of the stderr gets copied to it.
thanks for any help :)
--
Clinton Roy
CSIRO - Robotics Platform Engineer
Autonomous Systems Lab
humbug.org.au - Brisbane Unix Group
azure.humbug.org.au/~croy/blog - Blog
flickr.com/photos/croy/ - Photos
More information about the General
mailing list