Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 browsing the Monastery: (4)
As of 2014-12-28 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (179 votes), past polls