Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #37231
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <borkintom@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| 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; 'cc:addr :python-list': 0.10; 'hangs': 0.16; 'hi;': 0.16; '\xa0print': 0.16; 'mon,': 0.16; 'wrote:': 0.17; '8bit%:3': 0.17; 'skip:\xa0 30': 0.17; 'jan': 0.18; 'parameters': 0.20; 'written': 0.20; 'advise.': 0.22; 'assuming': 0.22; 'ones.': 0.22; 'subject:problem': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'pass': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'am,': 0.27; 'separate': 0.27; 'message- id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'url:mailman': 0.29; 'worked': 0.30; 'url:python': 0.32; 'suggestion': 0.32; 'print': 0.32; 'url:listinfo': 0.32; 'skip:s 30': 0.33; 'code:': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'open': 0.35; 'received:209.85': 0.35; 'next': 0.35; 'url:org': 0.36; 'available.': 0.37; 'execute': 0.37; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'instead': 0.39; 'list,': 0.39; 'url:mail': 0.40; 'first': 0.61; '2013': 0.84; 'all!': 0.84; 'song': 0.84; 'window,': 0.84; 'songs': 0.91; 'angel': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=mZJxDhRg599lM5Pee0oMfS/u2lKDU+ytN1U5kjnORJ0=; b=IYYVUicNnb6Jtb/t7foQPHRJ4HgOGIHVE0F+jp9U9ASbvR+zB8cMCV6g8FEchigUGC R+zCJKIwXTL6tRSU1FDGiBsaaAArDEVJaViviALtXvibA2guDo2q1xX/aTKAL9fOIS0J 9SjNyQbEj88zW+esMigssndjaNxoLFUQUYboX66/XsCNzHoVPqfnIx02vdwmZxHQH7in LCE1Pu7Dz1mj3tD8CxzmOTVSUIBbbmVTWntV9ZsbGugrRc1YHXyFW2xDBYkyo/XAoOzV bjMFZciCLHRoIxsluYoZAF6B4TlHNzWhgepwHon74f8bnB1Q/f/R8iW1OmXjGwp3rzW0 xaUw== |
| MIME-Version | 1.0 |
| X-Received | by 10.60.32.37 with SMTP id f5mr14970062oei.19.1358810534710; Mon, 21 Jan 2013 15:22:14 -0800 (PST) |
| In-Reply-To | <50FD3CCD.4060707@davea.name> |
| References | <CAAPnF_XoeAQLqOXSWVF05sazUy6jtqSCSv18r7SL+18AqqbwmQ@mail.gmail.com> <50FD3CCD.4060707@davea.name> |
| Date | Mon, 21 Jan 2013 19:22:14 -0400 |
| Subject | Re: Windows subprocess.call problem |
| From | Tom Borkin <borkintom@gmail.com> |
| To | Dave Angel <d@davea.name> |
| Content-Type | multipart/alternative; boundary=e89a8fb200203d0fb304d3d4bbbb |
| Cc | python-list@python.org |
| 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.768.1358810538.2939.python-list@python.org> (permalink) |
| Lines | 85 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1358810538 news.xs4all.nl 6890 [2001:888:2000:d::a6]:39218 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:37231 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
nobody@nowhere.com had an excellent suggestion that worked right off the bat and achieved exactly what I was after. Thanks all! Tom On Mon, Jan 21, 2013 at 9:04 AM, Dave Angel <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. > > > -- > DaveA > -- > http://mail.python.org/**mailman/listinfo/python-list<http://mail.python.org/mailman/listinfo/python-list> >
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Windows subprocess.call problem Tom Borkin <borkintom@gmail.com> - 2013-01-21 19:22 -0400
csiph-web