ntpq needs a push after each line

Eric S. Raymond esr at thyrsus.com
Mon Nov 7 19:39:56 UTC 2016


Hal Murray <hmurray at megapathdsl.net>:
> or you can't see anything if you use tee.
> 
> I assume the python default is line buffered when sysout is a terminal but 
> not if it's a pipe.

Yes. It turns out to be remarkably difficult to change this: see

http://stackoverflow.com/questions/107705/disable-output-buffering

I can flush() each peer spreadsheet line; is that the main issue?
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


More information about the devel mailing list