Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #11516 > unrolled thread

Re: subprocess.Popen question

Started byChris Rebert <clp2@rebertia.com>
First post2011-08-16 00:07 -0700
Last post2011-08-16 00:07 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: subprocess.Popen question Chris Rebert <clp2@rebertia.com> - 2011-08-16 00:07 -0700

#11516 — Re: subprocess.Popen question

FromChris Rebert <clp2@rebertia.com>
Date2011-08-16 00:07 -0700
SubjectRe: subprocess.Popen question
Message-ID<mailman.40.1313478470.27778.python-list@python.org>
On Tue, Aug 16, 2011 at 12:03 AM, Danny Wong (dannwong)
<dannwong@cisco.com> 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`:
http://en.wikipedia.org/wiki/Tee_%28command%29

Cheers,
Chris

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web