Re: Need to create subprocess...

2010-03-18 Thread Patrick Maupin
On Mar 18, 11:17 am, "drstoka" wrote: > Hello, > > I have to run a program as a child process inside my python program and > redirect it's output through a pipe to a parent program process. > So, I wrote this: > > pipe = Popen('example_program', shell=True, bufsize=0, stdout=PIPE).stdout > > and i

Re: Need to create subprocess...

2010-03-18 Thread Martin P. Hellwig
On 03/18/10 16:17, drstoka wrote: Hello, I have to run a program as a child process inside my python program and redirect it's output through a pipe to a parent program process. So, I wrote this: pipe = Popen('example_program', shell=True, bufsize=0, stdout=PIPE).stdout and it works great. No

Need to create subprocess...

2010-03-18 Thread drstoka
Hello, I have to run a program as a child process inside my python program and redirect it's output through a pipe to a parent program process. So, I wrote this: pipe = Popen('example_program', shell=True, bufsize=0, stdout=PIPE).stdout and it works great. Now, in parent program I need to wait