read pipe information on a running (popen) process

Jules Stevenson lists at js3d.co.uk
Tue Jan 6 23:00:50 CET 2009


> Which results in it printing (i think) the last line written to the
> pipe
> file. I'm thinking there must be a simpler way to access this
> information.
> Ideally I'd like to dump the whole lot to a string at periodic
> intervals but
> am completely stumped as to how to do this as readlines() and many
> other
> methods require an EOF.

FWIW google found this, which looks very promising:

http://code.activestate.com/recipes/440554/





More information about the Python-list mailing list