Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Bad file descriptor after vmran command using system()

by MidLifeXis (Prior)
on Apr 08, 2013 at 12:54 UTC ( #1027496=note: print w/ replies, xml ) Need Help??


in reply to Bad file descriptor after vmran command using system()

Your expectations for the return value of system are not correct. It returns 0 in the case of success, and therefore your test should look like:

system( ... ) == 0 or die "System failed: $?, $!"

--MidLifeXis


Comment on Re: Bad file descriptor after vmran command using system()
Select or Download Code
Re^2: Bad file descriptor after vmran command using system()
by Ingvar (Novice) on Apr 08, 2013 at 13:10 UTC

    It works now! Thank you all!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2014-08-01 07:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (257 votes), past polls