Re: get text from rogramms runn by subprocess.Popen immediatetly

2009-04-17 Thread Aaron Brady
On Apr 16, 8:02 am, Rüdiger Ranft <_r...@web.de> wrote: > Diez B. Roggisch schrieb: > > > Rüdiger Ranft schrieb: > >> Hi all, > > >> I need to call some programms and catch their stdout and stderr streams. > >> While the Popen class from subprocess handles the call, I get the > >> results of the pr

Re: get text from rogramms runn by subprocess.Popen immediatetly

2009-04-17 Thread Piet van Oostrum
> Rüdiger Ranft <_r...@web.de> (RR) wrote: >RR> Hi all, >RR> I need to call some programms and catch their stdout and stderr streams. >RR> While the Popen class from subprocess handles the call, I get the >RR> results of the programm not until the programm finishes. Since the >RR> output of th

Re: get text from rogramms runn by subprocess.Popen immediatetly

2009-04-16 Thread grocery_stocker
On Apr 16, 4:12 am, Rüdiger Ranft <_r...@web.de> wrote: > Hi all, > > I need to call some programms and catch their stdout and stderr streams. > While the Popen class from subprocess handles the call, I get the > results of the programm not until the programm finishes. Since the > output of the pro

Re: get text from rogramms runn by subprocess.Popen immediatetly

2009-04-16 Thread norseman
Rüdiger Ranft wrote: Hi all, I need to call some programms and catch their stdout and stderr streams. While the Popen class from subprocess handles the call, I get the results of the programm not until the programm finishes. Since the output of the programm is used to generate a progress indicat

Re: get text from rogramms runn by subprocess.Popen immediatetly

2009-04-16 Thread Diez B. Roggisch
Rüdiger Ranft schrieb: Diez B. Roggisch schrieb: Rüdiger Ranft schrieb: Hi all, I need to call some programms and catch their stdout and stderr streams. While the Popen class from subprocess handles the call, I get the results of the programm not until the programm finishes. Since the output o

Re: Re: get text from rogramms runn by subprocess.Popen immediatetly

2009-04-16 Thread Rüdiger Ranft
Diez B. Roggisch schrieb: > Rüdiger Ranft schrieb: >> Hi all, >> >> I need to call some programms and catch their stdout and stderr streams. >> While the Popen class from subprocess handles the call, I get the >> results of the programm not until the programm finishes. Since the >> output of the pr

RE: get text from rogramms runn by subprocess.Popen immediatetly

2009-04-16 Thread Barak, Ron
Maybe try: p = Popen('./iodummy',stdin=PIPE, stdout=PIPE, stderr=PIPE).p (see "18.1.3.4. Replacing the os.spawn family" in http://docs.python.org/library/subprocess.html) Bye, Ron. > -Original Message- > From: Rüdiger Ranft [mailto:_r...@web.de] > Sent: Thursday, April 16, 2009 14:13

Re: get text from rogramms runn by subprocess.Popen immediatetly

2009-04-16 Thread Jeremiah Dodds
On Thu, Apr 16, 2009 at 12:12 PM, Rüdiger Ranft <_r...@web.de> wrote: > Hi all, > > I need to call some programms and catch their stdout and stderr streams. > While the Popen class from subprocess handles the call, I get the > results of the programm not until the programm finishes. Since the > ou

Re: get text from rogramms runn by subprocess.Popen immediatetly

2009-04-16 Thread Diez B. Roggisch
Rüdiger Ranft schrieb: Hi all, I need to call some programms and catch their stdout and stderr streams. While the Popen class from subprocess handles the call, I get the results of the programm not until the programm finishes. Since the output of the programm is used to generate a progress indic