Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Executing a external command

by shmem (Chancellor)
on Aug 31, 2006 at 12:05 UTC ( #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? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2022-08-10 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?