Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: script hangs after executing program

by monkey_boy (Priest)
on Dec 15, 2006 at 17:07 UTC ( #590059=note: print w/ replies, xml ) Need Help??


in reply to script hangs after executing program

Are you sure its this line thats causing the hang? 1st try this:

$|=1; print "got here!\n" system("$prog -f $fname ") ; print "And i also got here!\n";

My second guess is that the $prog is waiting for something, like some data to be piped to it, what does the "top" command show, is it using cpu etc?
I guess we would need a lot more info on $prog to make a better guess.


This is not a Signature...


Comment on Re: script hangs after executing program
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2015-07-03 21:03 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 (56 votes), past polls