Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Perl: the Markov chain saw
 
PerlMonks  

Re: Question about IPC::Open2

by BUU (Prior)
on Nov 14, 2006 at 02:26 UTC ( #583881=note: print w/ replies, xml ) Need Help??


in reply to Question about IPC::Open2

Can you simply check if you've got the full output and then exit out of the loop and manually kill the process?


Comment on Re: Question about IPC::Open2
Re^2: Question about IPC::Open2
by GaijinPunch (Pilgrim) on Nov 14, 2006 at 03:03 UTC
    No... there's no way to know if it's the end or not... other than leave ample time for it to output.
      So uh, basically you want to open a filehandle and read data from it.. and keep reading.. and keep reading.. and you have no way to tell when to stop? Seems rather unsolvable to me.
        Not really. Read for X amount of seconds, then quit reading. My sleep doesn't seem to be doing that. I will try some of the solutions below and see what happens.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2014-04-18 01:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (460 votes), past polls