how to start a new process while the other ist running on

Harlin Seritt hps3 at seritt.org
Wed Dec 22 02:27:38 CET 2004


Quickie:

os.system("/path/to/script.sh &")

More elegant, have a look at threads

------------
Harlin Seritt

Erik Geiger wrote:

> Hi,
> 
> sorry, my english ist not that got but I'll try.
> 
> I have a running python script (capisuit incoming.py). This script shall
> start a linux shell script. If I start this script like os.system(/paht/to
> shellscipt.sh) the python scipt waits for the exit of the shell script and
> then goes on with the rest of the python script.
> 
> How to start a shell script without waiting for the exit of that shell
> script? It shall start the shell script and immediately execute the next
> python command.
> 
> Thanks for any hints
> 
> Erik





More information about the Python-list mailing list