How to catch a line with Popen

TheSaint nobody at nowhere.net.no
Mon May 30 11:29:07 EDT 2011


Chris Torek wrote:

> In at least some versions of Python 2

I'm with P3k :P. However thank you for your guidelines.
Last my attempt was to use a *for* p.wait() , as mentioned earlier

That looks good enough. I noted some little delay for the first lines, 
mostly sure Popen assign some buffer even it is not set.

Haven't you try a perpetual ping, how would be the line_at_a_time ?

-- 
goto /dev/null



More information about the Python-list mailing list