Get Stdout from external script startet through python
Fernando Pérez
fperez528 at yahoo.com
Sun Nov 17 19:11:16 EST 2002
Pearu Peterson wrote:
> So, any hints how to do that using Python tools and as an ordinary user
> (e.g. ttysnoop requires changes to /etc/inittab but it has other goals..),
> would be appreciated.
What about the PyExpect project?
http://pexpect.sourceforge.net/
I suspect it may work, even if you don't need the 'control' part of it, at
least it should be able to trap all output in a way which pipes can't (ie.
with pipes you can't control both stdin and stdout simultaneously).
Cheers,
f.
More information about the Python-list
mailing list