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-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 ___

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 size of