Re: real time updating of popen, bufsize=0 problems

2007-04-06 Thread ianaré
On Apr 6, 3:59 pm, Rob Wolfe <[EMAIL PROTECTED]> wrote: > "ianaré" <[EMAIL PROTECTED]> writes: > > hey all, I'm trying to get real time updates of batch file output. > > [...] > > > So I tried subprocess: > > proc = subprocess.Popen('"C:/path/to/test.bat"', bufsize=0, > > stdout=subprocess.PIPE)

Re: real time updating of popen, bufsize=0 problems

2007-04-06 Thread Rob Wolfe
"ianaré" <[EMAIL PROTECTED]> writes: > hey all, I'm trying to get real time updates of batch file output. [...] > So I tried subprocess: > proc = subprocess.Popen('"C:/path/to/test.bat"', bufsize=0, > stdout=subprocess.PIPE) Instead of that: > for line in proc.stdout: > self.display.Writ

Re: real time updating of popen, bufsize=0 problems

2007-04-06 Thread ianaré
On Apr 6, 3:22 pm, [EMAIL PROTECTED] wrote: > On Apr 6, 1:44 pm, "ianaré" <[EMAIL PROTECTED]> wrote: > > > > > hey all, I'm trying to get real time updates of batch file output. > > > Here is my batch file: > > @echo off > > echo 1 > > @ping 127.0.0.1 -n 2 -w 1500 > nul > > echo 2 > > @ping 127.0.0

Re: real time updating of popen, bufsize=0 problems

2007-04-06 Thread kyosohma
On Apr 6, 1:44 pm, "ianaré" <[EMAIL PROTECTED]> wrote: > hey all, I'm trying to get real time updates of batch file output. > > Here is my batch file: > @echo off > echo 1 > @ping 127.0.0.1 -n 2 -w 1500 > nul > echo 2 > @ping 127.0.0.1 -n 2 -w 1500 > nul > echo 3 > > If I run it in cmd.exe it will

real time updating of popen, bufsize=0 problems

2007-04-06 Thread ianaré
hey all, I'm trying to get real time updates of batch file output. Here is my batch file: @echo off echo 1 @ping 127.0.0.1 -n 2 -w 1500 > nul echo 2 @ping 127.0.0.1 -n 2 -w 1500 > nul echo 3 If I run it in cmd.exe it will print "1", wait 15sec, print "2", wait 15sec, print "3". I tried doing it