Re: How to start a new thread ?

From: Sam Holden (sholden_at_flexal.cs.usyd.edu.au)
Date: 10/23/04


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


Relevant Pages

  • Re: Printer not printing messages - error message
    ... The error message pop up window's title is: ... An error has occurred in the script on this page. ... in a new window then that window opens blank and when I right ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Printer not printing messages - error message
    ... The error message pop up window's title is: ... An error has occurred in the script on this page. ... in a new window then that window opens blank and when I right ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Problems with PrintReady javascript and published Frontpage 2003 web site
    ... 2003 web site ... > In your script delete the 5 lines you have added between ... > Then Test in Browser before you publsih ... > | link it opens a new windows and my browser freezes. ...
    (microsoft.public.frontpage.client)
  • SP2 and Javascript
    ... Web sites from running scripts that resize or reposition your browser ... As my start page is a script that resizes and repositions my browser window, ...
    (microsoft.public.windowsxp.general)
  • Re: SP2 and Javascript
    ... >pages will display fully in 800x600, so I force my browser to that size, as ... >As my start page is a script that resizes and repositions my browser window, ... >it seems I was correct in thinking that IE would block my attempts to resize ... >that tells me it won't run my script commands. ...
    (microsoft.public.windowsxp.general)