subprocess.Popen question

Chris Rebert clp2 at
Tue Aug 16 03:07:46 EDT 2011

On Tue, Aug 16, 2011 at 12:03 AM, Danny Wong (dannwong)
<dannwong at> wrote:
> Hi All,
>        I'm executing a command which I want to capture the
> standard/stderr output into a file (which I have with the code below),
> but I also want the standard output to go into a variable so I can
> process the information for the next command. Any ideas? Thanks.

Pipe it thru `tee`:


More information about the Python-list mailing list