spawn process in a new console window

2007-03-14 Thread eglaser
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?

I'm on Windows, and currently I'm using os.spawnl(...) to launch the
programs.

Any help is appreciated.

Thanks,

Eli

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: spawn process in a new console window

2007-03-15 Thread eglaser


Greg,

Thanks for the tip.  I will check out subprocess.

Eli

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: spawn process in a new console window

2007-03-15 Thread eglaser
On Mar 15, 5:12 am, Laurent Pointal <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] a écrit :
>
>
>
> > On Mar 14, 9:56 pm, [EMAIL PROTECTED] 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

-- 
http://mail.python.org/mailman/listinfo/python-list