Re: Python: subprocess running rsync causes broken socket in telnetlib

2011-04-06 Thread David Antliff
On Fri, Nov 12, 2010 at 16:19, David Antliff wrote: > > I'm reporting a problem I see on Cygwin because I do not see the same > behaviour on Ubuntu Linux - both systems are running Python 2.6.5. > > I have a script that opens a long-term telnet connection (telnetlib) > to a remote host. There is an

Re: Python: subprocess running rsync causes broken socket in telnetlib

2010-11-23 Thread David Antliff
On Wed, Nov 17, 2010 at 09:57, David Sastre wrote: > On Wed, Nov 17, 2010 at 09:39:38AM +1300, David Antliff wrote: >> On Mon, Nov 15, 2010 at 10:00, David Antliff wrote: >> > Can anyone else see the fault if they run the script I posted? [snip] > > I can reproduce it on my side. That doesn't mean

Re: Python: subprocess running rsync causes broken socket in telnetlib

2010-11-16 Thread David Sastre
On Wed, Nov 17, 2010 at 09:39:38AM +1300, David Antliff wrote: > On Mon, Nov 15, 2010 at 10:00, David Antliff wrote: > > Can anyone else see the fault if they run the script I posted? > > It would be great to know if this fault exists only at my site, or if > other sites can also demonstrate this

Re: Python: subprocess running rsync causes broken socket in telnetlib

2010-11-16 Thread David Antliff
On Mon, Nov 15, 2010 at 10:00, David Antliff wrote: > Can anyone else see the fault if they run the script I posted? It would be great to know if this fault exists only at my site, or if other sites can also demonstrate this fault. It's pretty easy to test - ensure you have Python and rsync insta

Re: Python: subprocess running rsync causes broken socket in telnetlib

2010-11-14 Thread David Antliff
On Sat, Nov 13, 2010 at 18:03, Charles Wilson wrote: > On 11/11/2010 10:19 PM, David Antliff wrote: >> On Cygwin 1.7.7, this does something nasty to the completely unrelated >> yet existing telnetlib socket so that any further attempts to read or >> write from this socket raise an exception: [snip]

Re: Python: subprocess running rsync causes broken socket in telnetlib

2010-11-12 Thread Charles Wilson
On 11/11/2010 10:19 PM, David Antliff wrote: > Then the script uses subprocess to do something else (the line is > actually longer than this but I've simplified it to the most basic > version that exhibits the problem): > > process = subprocess.Popen("rsync", stdout=subprocess.PIPE) > > On Cy

Re: Python: subprocess running rsync causes broken socket in telnetlib

2010-11-11 Thread David Antliff
On Fri, Nov 12, 2010 at 16:26, David Antliff wrote: > On Fri, Nov 12, 2010 at 16:19, David Antliff wrote: >> Then the script uses subprocess to do something else (the line is >> actually longer than this but I've simplified it to the most basic >> version that exhibits the problem): >> >>    proce

Re: Python: subprocess running rsync causes broken socket in telnetlib

2010-11-11 Thread David Antliff
On Fri, Nov 12, 2010 at 16:19, David Antliff wrote: > Then the script uses subprocess to do something else (the line is > actually longer than this but I've simplified it to the most basic > version that exhibits the problem): > >    process = subprocess.Popen("rsync", stdout=subprocess.PIPE) FWI