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

Erik Geiger Erik.geiger at gmx.de
Wed Dec 22 11:19:00 CET 2004


Thanks, thats what I use now :)

Harlin Seritt schrieb:

> 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

-- 
Jemanden wie ein rohes Ei zu behandeln kann auch bedeuten, ihn in die Pfanne
zu hauen.



More information about the Python-list mailing list