|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: capturing stdout in real timeby Illuminatus (Curate) |
| on Aug 20, 2012 at 22:40 UTC ( #988528=note: print w/ replies, xml ) | Need Help?? |
|
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
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||