Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Asynchronously capturing output from an external program

by tod222 (Pilgrim)
on Nov 09, 2010 at 05:09 UTC ( [id://870249]=note: print w/replies, xml ) Need Help??


in reply to Asynchronously capturing output from an external program

Is there any reason you can't have the command for the first program direct it's STDOUT to a temporary file and then read that temporary file? That's a common way to address this situation.

  • 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:39 UTC
    I'm doing integration tests (as I stated in the second sentence) and so I don't want to have to re-write any of the existing machinery. I only want to check to make sure that it does what it's supposed to do. Otherwise there are a number of less painful ways to do this.
    I'm not sure why piping the startup command for the first program to a file hadn't occurred to me. Although... as it turns out it looks like that doesn't capture all of it's output... strange.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-26 01:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found