> 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
[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
[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
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
[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
[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
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 of the script launching it. I'd like to do it so t