Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #11515
| Subject | subprocess.Popen question |
|---|---|
| Date | 2011-08-16 02:03 -0500 |
| References | <4E49AB3E.9000801@web.de> |
| From | "Danny Wong (dannwong)" <dannwong@cisco.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.39.1313478249.27778.python-list@python.org> (permalink) |
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. CMD_OUTPUT = subprocess.Popen(COMMAND, stdout=PROJECT_LOGFILE, stderr=subprocess.STDOUT)
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
subprocess.Popen question "Danny Wong (dannwong)" <dannwong@cisco.com> - 2011-08-16 02:03 -0500 Re: subprocess.Popen question Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2011-08-16 11:10 +0200 Re: subprocess.Popen question Nobody <nobody@nowhere.com> - 2011-08-16 12:26 +0100
csiph-web