in reply to Re: Capture Exit Code Using Pipe & Tee
in thread Capture Exit Code Using Pipe & Tee
open MAKE, "make -f <params> 2>&1 |" or die; open (LOGFILE, ">>build.log") or die; while (<MAKE>) { print LOGFILE $_; print } close MAKE; # to get $? my $exit = $? >> 8; close LOGFILE;
Edit: g0n - code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Capture Exit Code Using Pipe & Tee
by Anonymous Monk on Jul 08, 2010 at 20:46 UTC | |
by ikegami (Patriarch) on Jul 08, 2010 at 22:11 UTC |