Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 surveying the Monastery: (4)
As of 2014-10-25 22:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (149 votes), past polls