Huh? Give perl -E 'say `sudo "/bin/ls"`' a try. The exit status is not the STDOUT of the programme, but it's "return code". Like: did the command succeed?
Cheers, Sören
Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)
In reply to Re^3: Capture output from backtick commands using sudo
by Happy-the-monk
in thread Capture output from backtick commands using sudo
by macron0
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |