Re: [python-win32] win32pipe and buffer size

2005-07-15 Thread Tony Cappellini
Hi There is a pure-python version of expect called pExpect- use google to find it in sourceforge It's not from Active State- but Active State is not such a big deal. Message: 2 Date: Mon, 11 Jul 2005 17:41:24 +0200 From: Frank Guenther <[EMAIL PROTECTED]> Subject: [python-win32] win32pipe and b

Re: [python-win32] win32pipe and buffer size

2005-07-12 Thread Gabriel Genellina
At Tuesday 12/7/2005 13:09, Frank Guenther wrote: >That is exactly the problem, but how can I get the text which the >buffering client prints to the screen? > >The C++ Code looks like: > > printf ("1. Run Static Tests contained in Sections 5 through > 9.\n"); > printf ("2. Run

Re: [python-win32] win32pipe and buffer size

2005-07-12 Thread Frank Guenther
[EMAIL PROTECTED] wrote: if __name__ == '__main__': child = subprocess.Popen( ['python', 'echo.py'], Try adding "-u" as an option to Python - this will force Python to reopen stdout etc as unbuffered (ie, the problem is the client is buffering) Mark That i

Re: [python-win32] win32pipe and buffer size

2005-07-12 Thread Mark Hammond
> if __name__ == '__main__': > child = subprocess.Popen( > ['python', 'echo.py'], Try adding "-u" as an option to Python - this will force Python to reopen stdout etc as unbuffered (ie, the problem is the client is buffering) Mark ___ Pytho

Re: [python-win32] win32pipe and buffer size

2005-07-12 Thread Frank Guenther
Thanks for the reply, but it seems I run into the same problem like before when I use the subprocess module. I modified your example in the following way: echo.py import sys if __name__ == '__main__':     while 1:     indata = sys.stdin.readline()     if indata=='end\n': break  

Re: [python-win32] win32pipe and buffer size

2005-07-11 Thread Konstantin Veretennicov
On 7/11/05, Frank Guenther <[EMAIL PROTECTED]> wrote: > Hi All, > > I try to automate a command line tool and have the problem that I can't > read the stdout-pipe. > I think the reason is the tool doesn't flush the pipe so it is first > readable when the process was closed. > Can I set the buffer