Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by sauoq (Abbot)
on Jan 17, 2003 at 21:26 UTC ( [id://227804]=note: print w/replies, xml ) Need Help??


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

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.

-sauoq
"My two cents aren't worth a dime.";
  • Comment on Re: Re: Re: Re: Re: Backticks, $?, and Sudo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-19 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found