Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53250
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <tim@akwebsoft.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.044 |
| X-Spam-Evidence | '*H*': 0.91; '*S*': 0.00; 'output': 0.05; 'subject:skip:s 10': 0.07; 'solution,': 0.09; 'subject:instance': 0.09; 'python': 0.11; 'argument,': 0.16; 'forty': 0.16; 'googled': 0.16; 'tempfile': 0.16; 'header:User-Agent:1': 0.23; 'sort': 0.25; "i've": 0.25; 'tim': 0.29; "i'm": 0.30; 'code': 0.31; 'follows': 0.31; 'option.': 0.31; 'skip:s 70': 0.31; 'option': 0.32; 'could': 0.34; 'but': 0.35; 'found.': 0.36; 'done': 0.36; 'charset:us- ascii': 0.36; 'thanks': 0.36; 'should': 0.36; 'so,': 0.37; 'handle': 0.38; 'to:addr:python-list': 0.38; 'little': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'content- disposition:inline': 0.62; 'managing': 0.66; 'brain': 0.68; 'surprise': 0.74; 'topic,': 0.81; '2.7.1': 0.84; 'examples.': 0.84 |
| Date | Thu, 29 Aug 2013 10:34:18 -0800 |
| From | Tim Johnson <tim@akwebsoft.com> |
| To | Python ML <python-list@python.org> |
| Subject | subprocess.Popen instance hangs |
| Mail-Followup-To | Python ML <python-list@python.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.4.2.3i |
| Organization | AkWebsoft |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.367.1377801620.19984.python-list@python.org> (permalink) |
| Lines | 27 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1377801620 news.xs4all.nl 15953 [2001:888:2000:d::a6]:33597 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:53250 |
Show key headers only | View raw
using Python 2.7.1 on OS X 10.7.5 I'm managing a process of drush using an instance of subprocess.Popen The process has a '--verbose' option. When that option is passed as part of the initializer `args' argument, the process will hang. It should be no surprise as drush output with the --verbose option can be _extremely_ verbose, and I can do without it, but I would like to learn how to handle it. I've googled this topic, but my poor little brain is yet to sort out all of the content found. ## my relevant code follows : p = subprocess.Popen(args,stderr=subprocess.STDOUT,stdout=subprocess.PIPE) ## wait() is 'forever' if '--verbose' used exit_status = p.wait() output = p.stdout.read() ## done I 'suspect' that using a tempfile may be the solution, if so, I could use some examples. thanks -- Tim tim at tee jay forty nine dot com or akwebsoft dot com http://www.akwebsoft.com
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
subprocess.Popen instance hangs Tim Johnson <tim@akwebsoft.com> - 2013-08-29 10:34 -0800
csiph-web