Launching a process with stdout in the terminal and captured

Olive diolu.remove_this_part at bigfoot.com
Sun Jun 19 04:29:39 EDT 2016


eryk sun <eryksun at gmail.com> wrote:
> On Sat, Jun 18, 2016 at 7:09 AM, Olive
> <diolu.remove_this_part at bigfoot.com> wrote:
> > I am here on Linux.
> > ...
> > Note that if it is possible I would prefer that the launched command see its standard
> > output connected to a terminal  
> 
> Try pexpect.
> 
> https://pypi.python.org/pypi/pexpect


That's not what I am looking for. I want to let the end user intercat with the process, not my script. What I want is the content (after the process has exited) of all what it has written on standard output.

Olive




More information about the Python-list mailing list