Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Executing a external command

by shmem (Chancellor)
on Aug 31, 2006 at 12:05 UTC ( [id://570591]=note: print w/replies, xml ) Need Help??


in reply to Executing a external command

In your code, $cmd is the return value of your system call.

From system:

The return value is the exit status of the program as returned by the wait call. To get the actual exit value, shift right by eight.
so if '65280' is returned, the actual value is 255 (== 65280 >> 8). Check your OS's documentation about that error number.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-19 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found