How to start a new thread ?

Lad export at hope.cz
Sat Oct 23 05:27:13 EDT 2004


Tim Golden <tim.golden at viacom-outdoor.co.uk> wrote in message news:<mailman.5301.1098433895.5135.python-list at python.org>...
> [Lad]
> | > From running script I would like to start a new script in a new
> | > window.How can I do that from Python?
> | > Thanks for help
> | > LAD
> | 
> | Nobody knows???
> | Lad
> 
> <code>
> 
> import os
> os.system ("/path/to/other/script.py")
> 
> </code>
Dear Tim,
Thank you for the idea but it does not work without problems.
Your solution with os.system like 
os.system('start Script1.py')
os.system('start Script2.py')

works( without problems) if I start the main script from console.
Os.system opens a new console window and starts a child script in each
console window.
But
if I start the main script from a browser, and that is what I want,
like http://myserver/cgi-bin/ParentScript.py
the ParentScript.py does not open a new WEB BROWSER window but starts
a new CONSOLE window.
But I would like to open  each child script in a WEB BROWSER window
not in console window. How can I do that?
Thanks for help
Lad



More information about the Python-list mailing list