Doing readline in a thread from a popen4('rsync ...') stream blo cks when the stream ends.
popov
google at evpopov.com
Fri Apr 30 04:10:56 EDT 2004
"Rasmusson, Lars" <lars.rasmusson at hp.com> wrote in message news:<mailman.96.1083180848.25742.python-list at python.org>...
> Hi,
>
> I have a problem doing I/O in a python thread.
>
> I want a thread to execute a command using
> os.popen, read its input until the end, and
> then print 'DONE' and terminate.
>
> However, the thread hangs when it reaches
> the end of the stream.
You can have a look here:
http://sourceforge.net/tracker/?group_id=5470&atid=105470, looking for
'popen'.
requestID #566037 may be of interest, for eg.
More information about the Python-list
mailing list