[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Spawning console and piping the stdout into it
From:       Leonhard Weber <lweberk () gmail ! com>
Date:       2010-05-31 20:56:00
Message-ID: AANLkTincyNWlrdewHroBlkBceSzQP-zSalAHYm39BOlB () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

I'm stuck at a puzzle for quite some time.

Situation: (Linux environment)
I have a script that is invoked from an application (running my script as
part of embedded python). I have no power over that application, only supply
the script it executes. Now for development reasons I want that script to
spawn a console and show me the output through there. Though there is the
ugly way of writing to file and tailing it, it would be great if someone
could come up with a cleaner version.

The approach I've been taking is trying to start a child with the subprocess
module and pipe the sys.stdoout into the stdin of the child... hummmm. No
success so far.


Thanks,
~lwk

[Attachment #5 (text/html)]

Hi,<br><br>I&#39;m stuck at a puzzle for quite some time.<br><br>Situation:=
 (Linux environment)<br>I have a script that is invoked from an application=
 (running my script as part of embedded python). I have no power over that =
application, only supply the script it executes. Now for development reason=
s I want that script to spawn a console and show me the output through ther=
e. Though there is the ugly way of writing to file and tailing it, it would=
 be great if someone could come up with a cleaner version.<br>
<br>The approach I&#39;ve been taking is trying to start a child with the s=
ubprocess module and pipe the sys.stdoout into the stdin of the child... hu=
mmmm. No success so far.<br><br><br>Thanks,<br>~lwk<br>


-- 
http://mail.python.org/mailman/listinfo/python-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic