Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Obtaining a return code

by infoninja (Friar)
on May 18, 2000 at 20:34 UTC ( [id://13059]=note: print w/replies, xml ) Need Help??


in reply to Obtaining a return code

At least on a Unix box, system() will return the exit status of the system call:
$x = system("echo y"); $x = $x/255; #set $x to actual exit value $y = system("blahblah"); $y = $y/255; #set $y to actual exit value
results in $x set to 0 and $y set to 256 (as long as there's no executable called "blahblah" in $PATH).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-03-28 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found