Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Asynchronously capturing output from an external program

by bingos (Vicar)
on Nov 09, 2010 at 11:16 UTC ( #870279=note: print w/replies, xml ) Need Help??


in reply to Asynchronously capturing output from an external program

Capture::Tiny

See also Dave Golden's talk on Capturing output

The Asynchronously in your heading is misleading as you don't actually appear to want that at all

  • Comment on Re: Asynchronously capturing output from an external program

Replies are listed 'Best First'.
Re^2: Asynchronously capturing output from an external program
by Furple (Novice) on Nov 09, 2010 at 17:43 UTC

    Mmm. Asynchronous is perhaps not 100% correct but it's not as simple as do one thing, then do something else. I want to fire the main code at one point (filterd), do something(fire filtqmail), and then check the main program's output. I can't fire the code and capture its output and THEN prod it into motion, which at least from an initial read is what it looks like Capture::Tiny does. While it's interesting and probably a useful thing for me to know about in the future I'm not sure that it accomplishes what I need it to. So far the best answer has been a file handle to the output so I can check it when I want to.

    That said the link on Dave Golden's talk was awesome. Thanks for that.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://870279]
help
Chatterbox?
[LanX]: probably need to start pm discussion
[LanX]: they have a constitutional referendum in turkey, kind of "do you want a dictator" and everybody opting no gets problems ...
[Corion]: LanX: Random Auto Expand?
[Corion]: LanX: Well, everybody opting "yes" will also get problems. The question is more like "Do you want problems now or problems later?"
[LanX]: and the AA had posters with a big say NO with a small "to alcohol"
[ambrus]: LanX: is it the kind of free and secret vote where there's only one box you can check?
[LanX]: no two boxes , enemies of the state are just denounced
[LanX]: like judges in Britain or the US

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2017-03-27 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.