spawn process in a new console window

eglaser at gmail.com eglaser at gmail.com
Thu Mar 15 08:26:33 EDT 2007


On Mar 15, 5:12 am, Laurent Pointal <laurent.poin... at limsi.fr> wrote:
> gregpin... at gmail.com a écrit :
>
>
>
> > On Mar 14, 9:56 pm, egla... at gmail.com wrote:
> >> Hello,
>
> >> I have a script that launches a sequence of other programs, some GUI,
> >> some console.  I'd like the console programs to launch in their own
> >> console window, instead of all of them sharing the script's console.
> >> How do I do that?
>
> > Would the subprocess module help here?  It's available in Python 2.4
> > onwards.  I think it's supposed to be a one stop shop for all your
> > external application launching needs (Python group, please correct me
> > if I'm wrong here).
>
> > -Greg
>
> Try to use "start"
>
> >>> import os
> >>> os.system("start cmd")
>
> Open a new console with a cmd shell in it.
>
> See start documentation herehttp://www.ss64.com/nt/start.html
> Or typing help start on the command line.


It looks like 'start' might be exactly what I need.  Thanks.

Eli




More information about the Python-list mailing list