Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #37234
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subsequent': 0.04; 'subject:skip:s 10': 0.05; '21,': 0.07; 'filenames': 0.07; 'tom': 0.07; 'subject:Windows': 0.09; 'invocation': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'terry': 0.09; 'hangs': 0.16; 'hi;': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'parameters': 0.20; 'written': 0.20; 'advise.': 0.22; 'assuming': 0.22; 'ones.': 0.22; 'subject:problem': 0.22; 'pass': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'separate': 0.27; "doesn't": 0.28; 'header:X-Complaints-To:1': 0.28; 'worked': 0.30; 'suggestion': 0.32; 'print': 0.32; 'skip:s 30': 0.33; 'to:addr :python-list': 0.33; 'code:': 0.33; 'thanks': 0.34; 'open': 0.35; 'pm,': 0.35; 'next': 0.35; 'received:org': 0.36; 'available.': 0.37; 'execute': 0.37; 'why': 0.37; 'subject:: ': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'list,': 0.39; 'header:Received:5': 0.40; 'first': 0.61; '2013': 0.84; 'all!': 0.84; 'received:fios.verizon.net': 0.84; 'song': 0.84; 'window,': 0.84; 'songs': 0.91; 'angel': 0.93 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Terry Reedy <tjreedy@udel.edu> |
| Subject | Re: Windows subprocess.call problem |
| Date | Mon, 21 Jan 2013 18:38:27 -0500 |
| References | <CAAPnF_XoeAQLqOXSWVF05sazUy6jtqSCSv18r7SL+18AqqbwmQ@mail.gmail.com> <50FD3CCD.4060707@davea.name> <CAAPnF_XpdmDB=kfHg8MS=YWybgCf-ng_NpMhjaTgxnvbxRJC6A@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | pool-173-75-251-66.phlapa.fios.verizon.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
| In-Reply-To | <CAAPnF_XpdmDB=kfHg8MS=YWybgCf-ng_NpMhjaTgxnvbxRJC6A@mail.gmail.com> |
| 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.769.1358811545.2939.python-list@python.org> (permalink) |
| Lines | 39 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1358811545 news.xs4all.nl 6877 [2001:888:2000:d::a6]:42200 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:37234 |
Show key headers only | View raw
On 1/21/2013 6:22 PM, Tom Borkin wrote: > nobody@nowhere.com <mailto:nobody@nowhere.com> had an excellent > suggestion that worked right off the bat and achieved exactly what I was > after. Thanks all! And what was it? > > On Mon, Jan 21, 2013 at 9:04 AM, Dave Angel <d@davea.name > <mailto:d@davea.name>> wrote: > > On 01/21/2013 06:25 AM, Tom Borkin wrote: > > Hi; > I have this code: > <snip> > > for song in my_songs: > subprocess.call(['notepad.exe'__, '%s.txt' % song]) > print song > > It opens the first song and hangs on subsequent songs. It > doesn't open the > next song or execute the print until I have closed the first > one. I want it > to open all in the list, one after another, so I have all those > songs > available. Please advise. > > > Why not just pass all the filenames as parameters in one invocation > of notepad? Assuming Notepad is written reasonably, that'll give it > all to you in one window, instead of opening many separate ones. -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Windows subprocess.call problem Terry Reedy <tjreedy@udel.edu> - 2013-01-21 18:38 -0500
csiph-web