in reply to Re: Capture output from backtick commands using sudo in thread Capture output from backtick commands using sudo
Hi,
I stumbled across the same issue as you.
In fact, since sudo will return: 'Upon successful execution of a program, the exit status from sudo will simply be the exit status of the program that was executed.' - you will not the the result of the 'ls'.
In a specific case, what I wished for was the output of the executed program ('ls', for you).
Did you find an answer for this? I'd really prefer not to use any temp files.
Thanks!
Norbert
|