in reply to Re: Capturing all (and I mean all) output to a file
in thread Capturing all (and I mean all) output to a file
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.txt
|
|---|