Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Re: Re: Re: Backticks, $?, and Sudo

by ignatz (Vicar)
on Jan 17, 2003 at 21:14 UTC ( #227802=note: print w/ replies, xml ) Need Help??

in reply to Re: Re: Re: Backticks, $?, and Sudo
in thread Backticks, $?, and Sudo

So, alas, there's no way to get the result of the command that sudo runs?


Comment on Re: Re: Re: Re: Backticks, $?, and Sudo
Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Backticks, $?, and Sudo
by sauoq (Abbot) on Jan 17, 2003 at 21:26 UTC

    Well, as I showed in my other post, sudo does return the exit status of the command it runs.

    Unfortunately, the case where the command returns 1 seems to be indistinguishable from the case where sudo returns 1. I guess that little bit of ambiguity could be a big bummer. You might be able to get around it on a case by case basis by using wrappers for your commands.

    "My two cents aren't worth a dime.";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://227802]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2015-11-26 16:44 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (703 votes), past polls