Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Windows subprocess.call problem

Reply
Thread Tools

Re: Windows subprocess.call problem

 
 
Terry Reedy
Guest
Posts: n/a
 
      01-21-2013
On 1/21/2013 6:22 PM, Tom Borkin wrote:
> http://www.velocityreviews.com/forums/(E-Mail Removed) <(E-Mail Removed)> 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 <(E-Mail Removed)
> <(E-Mail Removed)>> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
!Windows Live Mail replace Outlook Express on Windows XP and Windows Mail on Vista... Max Burke NZ Computing 8 05-18-2007 12:10 AM
Problem with Mozilla on Windows XP: multiple browser windows David Arnstein Computer Support 0 09-23-2005 07:43 PM
solved: Due to an unidentified problem, Windows cannot display Windows Firewall Settings jameshanley39@yahoo.co.uk Computer Information 0 01-10-2005 12:09 AM
Problem moving applications from Windows XP Pro to Windows 2003 Server Michael Johnson Sr. ASP .Net 0 02-04-2004 07:04 AM



Advertisments