Re: How to start a new thread ?
From: Sam Holden (sholden_at_flexal.cs.usyd.edu.au)
Date: 10/23/04
- Next message: Max M: "Re: ClientCookie problem - Difference between 'post' on the local network and the internet"
- Previous message: Michael Foord: "Re: Authentication from urllib2"
- In reply to: Lad: "Re: How to start a new thread ?"
- Next in thread: Lad: "Re: How to start a new thread ?"
- Reply: Lad: "Re: How to start a new thread ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Oct 2004 11:01:39 GMT
On 23 Oct 2004 02:27:13 -0700, Lad <export@hope.cz> wrote:
> Tim Golden <tim.golden@viacom-outdoor.co.uk> wrote in message news:<mailman.5301.1098433895.5135.python-list@python.org>...
>>
>> import os
>> os.system ("/path/to/other/script.py")
>>
> 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?
It can't be done. The web browser decides when and how to open windows,
your script can only send output to the browser and hope it does
something vaguely like what you want. Some web browsers don't
support multiple windows, for example.
You could send the browser some Javascript and on sufficiently insecure
browsers that Javascript could make the browser open a new window
and make a HTTP request which starts another script.
-- Sam Holden
- Next message: Max M: "Re: ClientCookie problem - Difference between 'post' on the local network and the internet"
- Previous message: Michael Foord: "Re: Authentication from urllib2"
- In reply to: Lad: "Re: How to start a new thread ?"
- Next in thread: Lad: "Re: How to start a new thread ?"
- Reply: Lad: "Re: How to start a new thread ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|