Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: getting the bash exit code

by xorl (Deacon)
on Aug 27, 2012 at 13:22 UTC ( [id://989984]=note: print w/replies, xml ) Need Help??


in reply to Re: getting the bash exit code
in thread getting the bash exit code

Thanks for the answer. I wish you had stopped at "Yes It's that simple".

So for quick and dirty every day use it sounds like I can just say something like:
$exit_status = $?/255;

I've never understood what bitwise AND (the '&' operator) does. Plus I've never encountered the ">>" operator before (I looked it up it is called a shift operator but the explanation of what it does was way beyond me). From your answer I get the impression I'd need to go back to college and take some pretty advance math or maybe computer science classes to understand them.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-20 05:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found