in reply to interleaf stdout stderr to a file
Of course, you'll likely have trouble if you execute your command as listed above, since the channels will clobber each other. You probably meanselect(STDERR); $| = 1; select(STDOUT); $| = 1;
script.pl > script.out 2>&1
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: interleaf stdout stderr to a file
by hg2 (Initiate) on Mar 03, 2015 at 15:12 UTC |