How to start a new thread ?

L

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
 
?

=?ISO-8859-1?Q?J=F8rgen_Cederberg?=

Lad said:
Nobody knows???
Lad

It is very unclear what you want to do? If you are on a Windows PC you could do this:

import os
os.system('start thescript.py')

Regards
Jorgen
 
L

Lad

Jørgen Cederberg said:
It is very unclear what you want to do? If you are on a Windows PC you could do this:
c
Regards
Jorgen

Dear Jorgen,
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,209
Messages
2,571,088
Members
47,687
Latest member
IngridXxj

Latest Threads

Top