I used the following in the end, using tee.exe - thanks for your tip!
$|++; open (STDERR, ">&STDOUT"); #stuff my $cmdout = `system command`; print $cmdout;
And ran it using
perl code.pl |tee outfile.txtIn reply to Re^2: Capturing all (and I mean all) output to a file
by flippy
in thread Capturing all (and I mean all) output to a file
by flippy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |