Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: How to get the exit status and the output of the command launched in perl

by almut (Canon)
on May 26, 2009 at 10:47 UTC ( #766184=note: print w/ replies, xml ) Need Help??


in reply to Re^2: How to get the exit status and the output of the command launched in perl
in thread How to get the exit status and the output of the command launched in perl

Is there a convenient way to translate it back?

In short (but not entirely correct), it's 1536 >> 8, i.e. shift right the return value by 8 bits, or divide by 256. For the details, see system.


Comment on Re^3: How to get the exit status and the output of the command launched in perl
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2014-09-19 01:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (129 votes), past polls