Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: capturing stdout in real time

by Illuminatus (Curate)
on Aug 20, 2012 at 22:40 UTC ( #988528=note: print w/replies, xml ) Need Help??


in reply to capturing stdout in real time

stdout is normally buffered. Unless you can change the "other programs", or they have a runtime option to change the buffering, you don't have much choice. About the only thing you could do (and this would be messy), would be to get the program to write to a pty -- then it would be line-buffered, which would probably give you the data more quickly

fnord

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988528]
help
Chatterbox?
[davies]: LanX: It;s not the Lord Mayor, usually a businessman with the interests of London at heart, but the mayor, a politician with his own interests at heart. The Lord Mayor is responsible for London, i.e. the "square mile"...
[davies]: The mayor is irresponsible for greater London.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2017-12-15 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (439 votes). Check out past polls.

    Notices?