Re: Custom Formatting The Output Of subprocess.Popen

2008-11-22 Thread thedsadude
> regards >  Steve > -- > Steve Holden        +1 571 484 6266   +1 800 494 3119 > Holden Web LLC              http://www.holdenweb.com/ Thanks all for your help! Bye, TD -- http://mail.python.org/mailman/listinfo/python-list

Re: Custom Formatting The Output Of subprocess.Popen

2008-11-21 Thread Steve Holden
[EMAIL PROTECTED] wrote: > On Nov 21, 8:50 pm, Scott David Daniels <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >>> Hello, >>> I'm launching a script as follows: >>> >>> p = subprocess.Popen(['./p.py', 'aa']) >>> p.wait() >>> >>> If p.py writes to sys.stdout, then it is shown on t

Re: Custom Formatting The Output Of subprocess.Popen

2008-11-21 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: ... so, it seems to me that if I would know how to write a file object, then I could write one that prefixes each line, and that would be fine, no? I don't see how this would necessitate waiting for p.py's termination, or matter that it is a different process. I just do

Re: Custom Formatting The Output Of subprocess.Popen

2008-11-21 Thread thedsadude
On Nov 21, 8:50 pm, Scott David Daniels <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > >   Hello, > > >   I'm launching a script as follows: > > > > p = subprocess.Popen(['./p.py', 'aa']) > > > p.wait() > > > > >   If p.py writes to sys.stdout, then it is shown on the console > > You

Re: Custom Formatting The Output Of subprocess.Popen

2008-11-21 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: Hello, I'm launching a script as follows: p = subprocess.Popen(['./p.py', 'aa']) p.wait() If p.py writes to sys.stdout, then it is shown on the console You seem to be missing the fact that ./py is run in a different process. The "sys.stdout" that p.py uses

Re: Custom Formatting The Output Of subprocess.Popen

2008-11-21 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hello, > > I'm launching a script as follows: > > p = subprocess.Popen(['./p.py', 'aa']) > > p.wait() > > > If p.py writes to sys.stdout, then it is shown on the console. > Looking at the console, then, it is hard to distinguish the output of > p.py from that