Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://766184]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-18 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found