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)
In reply to Re: Print STDERR&STDOUT to log file and to the screen
by moritz
in thread Print STDERR&STDOUT to log file and to the screen
by Noame
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |