Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #11516 > unrolled thread
| Started by | Chris Rebert <clp2@rebertia.com> |
|---|---|
| First post | 2011-08-16 00:07 -0700 |
| Last post | 2011-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.
Re: subprocess.Popen question Chris Rebert <clp2@rebertia.com> - 2011-08-16 00:07 -0700
| From | Chris Rebert <clp2@rebertia.com> |
|---|---|
| Date | 2011-08-16 00:07 -0700 |
| Subject | Re: 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
Back to top | Article view | comp.lang.python
csiph-web