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

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...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://590059]
[virtualsue]: a veterinarian told me to cut down on my cat's food. i said, when i do that she just catches more mice
[thezip]: My dogs are also excellent mousers, at least that's what they tell me.
[GotToBTru]: our beagle has dispatched 3 rabbits to the Great Hutch in the Sky since March.
[thezip]: I can always tell when the dogs have been mousing, as there is a concentric ring of mud around the end of their snouts when they do.
[thezip]: As for more physical evidence, that always seems to be missing somehow
[Rabbi Bob]: We have a Jack Russell: off the leash she is a torpedo against mice, rats, chipmunks and squirrels
[Rabbi Bob]: Doesn't eat them, just snaps, kills, drops and moves on.
[thezip]: Efficient, that one.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (14)
As of 2017-11-17 19:57 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (272 votes). Check out past polls.