Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by MidLifeXis (Monsignor)
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
Replies are listed 'Best First'.
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 drinking their drinks and smoking their pipes about the Monastery: (15)
As of 2015-07-28 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls