http://qs321.pair.com?node_id=988528


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