in reply to Print STDERR&STDOUT to log file and to the screen
One possible workaround to your problem is to call tee from inside system:
system ("nmake /df $object.mak CFG=\"$object - ${BUILD_CFG}$build_conf +ig\"|tee -a $buildLog");
(perhaps you also want to join STDERR and STDOUT before the tee, so insert a 2>&1 in front of the pipe.
(Update: fixed redirection thingy)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Print STDERR&STDOUT to log file and to the screen
by Noame (Beadle) on Jan 23, 2008 at 18:31 UTC |