Re: Chaining programs with pipe

2007-08-28 Thread Gabriel Genellina
On 28 ago, 09:19, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-08-28, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > > > On Windows, windowed applications (as opposed to console > > applications) start with no stdin/stdout/stderr by default. > > The application developer can modify that if de

Re: Chaining programs with pipe

2007-08-28 Thread Grant Edwards
On 2007-08-28, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > On Windows, windowed applications (as opposed to console > applications) start with no stdin/stdout/stderr by default. > The application developer can modify that if desired, of > course - I've menctioned some ways to do that. This fact

Re: Chaining programs with pipe

2007-08-28 Thread Gabriel Genellina
On 28 ago, 02:11, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_zealand> wrote: > In message <[EMAIL PROTECTED]>, Gabriel > > > > > > Genellina wrote: > > En Mon, 27 Aug 2007 05:35:51 -0300, Lawrence D'Oliveiro > > <[EMAIL PROTECTED]> escribi?: > > >> In message <[EMAIL PROTECTED]>, > >> G

Re: Chaining programs with pipe

2007-08-27 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Gabriel Genellina wrote: > En Mon, 27 Aug 2007 05:35:51 -0300, Lawrence D'Oliveiro > <[EMAIL PROTECTED]> escribi�: > >> In message <[EMAIL PROTECTED]>, >> Gabriel Genellina wrote: >> >>> On 22 ago, 11:08, Grant Edwards <[EMAIL PROTECTED]> wrote: >>> but I'm a

Re: Chaining programs with pipe

2007-08-27 Thread Gabriel Genellina
En Mon, 27 Aug 2007 05:35:51 -0300, Lawrence D'Oliveiro <[EMAIL PROTECTED]> escribi�: > In message <[EMAIL PROTECTED]>, > Gabriel > Genellina wrote: > >> On 22 ago, 11:08, Grant Edwards <[EMAIL PROTECTED]> wrote: >> >>> but I'm a Unix guy who occasionally tries >>> to ship a Windows version of

Re: Chaining programs with pipe

2007-08-27 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Gabriel Genellina wrote: > On 22 ago, 11:08, Grant Edwards <[EMAIL PROTECTED]> wrote: > >> but I'm a Unix guy who occasionally tries >> to ship a Windows version of a Python app: the concept of a >> process defaulting to having a stderr or stdout that wasn't >> wri

Re: Chaining programs with pipe

2007-08-22 Thread Gabriel Genellina
On 22 ago, 11:08, Grant Edwards <[EMAIL PROTECTED]> wrote: > but I'm a Unix guy who occasionally tries > to ship a Windows version of a Python app: the concept of a Ah, that explains your previous post telling that things on Windows don't work as they "should". They work, but not necesarily as a

Re: Chaining programs with pipe

2007-08-22 Thread Grant Edwards
On 2007-08-22, Steve Holden <[EMAIL PROTECTED]> wrote: > Grant Edwards wrote: >> On 2007-08-21, avishay <[EMAIL PROTECTED]> wrote: >> >>> I'm trying to chain two programs with a pipe (the output of >>> one feeding the input of the other). I managed to capture the >>> output and feeding the input o

Re: Chaining programs with pipe

2007-08-21 Thread Steve Holden
Grant Edwards wrote: > On 2007-08-21, avishay <[EMAIL PROTECTED]> wrote: > >> I'm trying to chain two programs with a pipe (the output of >> one feeding the input of the other). I managed to capture the >> output and feeding the input of each program independently >> with popen, but how do I tie t

Re: Chaining programs with pipe

2007-08-21 Thread Karthik Gurusamy
On Aug 21, 8:33 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-08-22, Karthik Gurusamy <[EMAIL PROTECTED]> wrote: > > > Not sure on non-unix platforms, but in unix like platforms it's best > > to reuse shell's power. > > import commands > commands.getoutput('ls | wc') > > ' 4

Re: Chaining programs with pipe

2007-08-21 Thread Grant Edwards
On 2007-08-22, Karthik Gurusamy <[EMAIL PROTECTED]> wrote: > Not sure on non-unix platforms, but in unix like platforms it's best > to reuse shell's power. > import commands commands.getoutput('ls | wc') > ' 4 4 24' Executing a shell just because you want a pipe see

Re: Chaining programs with pipe

2007-08-21 Thread Grant Edwards
On 2007-08-21, avishay <[EMAIL PROTECTED]> wrote: > I'm trying to chain two programs with a pipe (the output of > one feeding the input of the other). I managed to capture the > output and feeding the input of each program independently > with popen, but how do I tie them together? On Unix, you d

Re: Chaining programs with pipe

2007-08-21 Thread Gabriel Genellina
On 21 ago, 21:40, Karthik Gurusamy <[EMAIL PROTECTED]> wrote: > On Aug 21, 3:09 pm, avishay <[EMAIL PROTECTED]> wrote: > > > I'm trying to chain two programs with a pipe (the output of one > > feeding the input of the other). I managed to capture the output and > > feeding the input of each program

Re: Chaining programs with pipe

2007-08-21 Thread Karthik Gurusamy
On Aug 21, 3:09 pm, avishay <[EMAIL PROTECTED]> wrote: > Hello > I'm trying to chain two programs with a pipe (the output of one > feeding the input of the other). I managed to capture the output and > feeding the input of each program independently with popen, but how do > I tie them together? Is

Chaining programs with pipe

2007-08-21 Thread avishay
Hello I'm trying to chain two programs with a pipe (the output of one feeding the input of the other). I managed to capture the output and feeding the input of each program independently with popen, but how do I tie them together? Is there a solution that works equally on all platforms? Thanks, Av