How to start a new thread ?

Sam Holden sholden at flexal.cs.usyd.edu.au
Sun Oct 24 03:02:48 CEST 2004


On 23 Oct 2004 07:42:08 -0700, Lad <export at hope.cz> wrote:
> Sam, 
> thanks for your reply.
> If I can open console window
> by os.system('start Script2.py')
> isn't there any way how to send the output from that 
> Script2.py to a browser? The reason is ( also) that the otput consists HTML code

Yes you just print it out in a CGI script and the web server arranges for it
to get sent to the browser. What you can't do is execute that script and have
its output appear in a different browser window than the original script's
output (at least not without resorting to Javascript and only working
on some browsers).

You can just output a HTML link which causes a new CGI script to execute
which either is Script2.py or executes Script2.py. That way the user
can click the link to get the output of the script.

-- 
Sam Holden



More information about the Python-list mailing list