473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to start a new thread ?

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
Jul 18 '05 #1
3 1694
Lad
ex****@hope.cz (Lad) wrote in message news:<81*************************@posting.google.c om>...
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
Jul 18 '05 #2
Lad wrote:
ex****@hope.cz (Lad) wrote in message news:<81*************************@posting.google.c om>...
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


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
Jul 18 '05 #3
Lad
Jørgen Cederberg <jo*************@hotmail.com> wrote in message news:<RB****************@news.get2net.dk>...
Lad wrote:
ex****@hope.cz (Lad) wrote in message news:<81*************************@posting.google.c om>...
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


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
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Phil | last post by:
I recently replaced my Toshiba 6100 laptop running XP Pro with a Dell Latitude D810 running XP Pro; since that time an application that I developed over a year ago has stopped working. I am using...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
3
by: JohnnyGr | last post by:
I have heard theres a new way to start threads with parameters in framework 2.0, does anyone know how to do that? this is what i need to do... Start a thread that executes some stuff, in this...
5
by: taylorjonl | last post by:
I am completely baffled. I am writting a daemon application for my work to save me some time. The application works fine at my home but won't work right here at work. Basically I have a...
37
by: ales | last post by:
Hello, I have a problem with creation of new thread. The method .Start() of newly created thread delays current thread for 0 - 1 second. Cpu while delay occurs is about 5%. Any idea? Here...
5
by: zxo102 | last post by:
Hi, I am doing a small project using socket server and thread in python. This is first time for me to use socket and thread things. Here is my case. I have 20 socket clients. Each client send a...
8
by: Carl Heller | last post by:
If I'm creating a class to do some work that I want threaded out, where's the best location to call ThreadStart? Or does it depend on the nature of the work? a. Call it outside the class,...
0
by: sauce | last post by:
Hi, Hm this error has gotten me really frustrated....I wrote a cgi script implementing threads using the threading module, but ran into these errors from my web server: Exception in thread...
0
by: Yue Fei | last post by:
I have a multi thread python code, threads can start immediately if I run on command line, but I can get them started right the way if I call the same code from C/C++. test code like this: from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.