473,473 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Re: Starting seperate programs

En Thu, 07 Aug 2008 10:03:59 -0300, David Dean <da********@geotate.com>
escribi�:
Is there a way for a python program start another python program, and
then continue, without waiting for the second program to finish?
os.startfile() seems to be what I want on windows, but I need it to work
on linux and mac as well.
Is there a function that does essentially the same as startfile, but
without needing an associtated program (i.e. asking for one)?
os.system("python other_program.py")
You may want to replace that "python" with sys.executable.

--
Gabriel Genellina

Aug 12 '08 #1
0 652

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

Similar topics

1
by: kluchen | last post by:
I'm writing a program, which is able to start the other programs (exe). I use CreateProcess to start them. Most programs start correctly, but I've found one, which doesn't. It is acdsee5.exe. When...
3
by: Chris Mantoulidis | last post by:
Seperate compilation (that's what it's called, right?) seems to be quite popular, so I decided to get some info about it, and (d'oh) use it... But it's whole structure seems weird to me... ...
1
by: David. E. Goble | last post by:
I have a slideshow, it uses sigsImages=new Array()"); sigsImages="sigs/finished1.jpg" sigsImages="sigs/foghorn.jpg" sigsImages="sigs/motto.jpg" sigsImages="sigs/sig.jpg"...
4
by: Adam | last post by:
Eh, probably not the most specific subject line... But, I've got a number of fields in which I need to do things like remove the first 4 characters, or remove the last 3. Such as: ...
0
by: David Stevenson | last post by:
If anyone else is having the error Unhandled Exception: System.InvalidCastException: Return argument has an invalid type. when calling a method on a remote object that returns a complex data type...
4
by: Phil Mc | last post by:
Say for example you have a application running on a windows 2003 server (that is on server, not from). This application needs to start child applications (must be stand alone console applications),...
10
by: Andrew Bullock | last post by:
Hi, code: myClass x = new myClass(); x.dosomethingwith(x,y); How do i make dosomethingwith(x,y) run on a separate thread, and then inform the main thread when it has finished?
2
by: duzhidian | last post by:
Hello all, Since I need call a function in different php files, I want to put the funcion in a seperate file instead of copying and pasting into each php file. The benefit is that when I...
4
by: JamesB | last post by:
Hi, I need to trap a particular process starting or ending. I have done this using process.start from within my own app, but powers that be really want it to be seperate (i.e. my app should...
34
by: Umesh | last post by:
I want to extract a string abc*xyz from a text file. * indicates arbitrary no. of characters. I'm only able to do it when the string has definite no. of characters or the string length is...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.