try that:/$ perl -e '$alloutput=`cmd 2>&1`; print $alloutput;' :/$
Regards.:/$ perl -e '$alloutput=`cmd 2>&1;`; print $alloutput;' sh: cmd: command not found :/$
In reply to Re: backticks fail to capture stderr even with explicit redirection
by reisub
in thread backticks fail to capture stderr even with explicit redirection
by keithhanlan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |