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

2004-12-22 Thread Keith Dart
On 2004-12-22, Erik Geiger <[EMAIL PROTECTED]> wrote: > Donn Cave schrieb: > >> In article <[EMAIL PROTECTED]>, Erik Geiger <[EMAIL PROTECTED]> >> wrote: > [...] >> > Thats what I've tried, but it did not work. Maybe it's because I want to >> > start something like su -c '/path/to/skript $parameter

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

2004-12-22 Thread Erik Geiger
Donn Cave schrieb: > In article <[EMAIL PROTECTED]>, Erik Geiger <[EMAIL PROTECTED]> > wrote: [...] > > Thats what I've tried, but it did not work. Maybe it's because I want to > > start something like su -c '/path/to/skript $parameter1 $parameter2' > > user > Unfortunately this particular case

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

2004-12-22 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Erik Geiger <[EMAIL PROTECTED]> wrote: > Fredrik Lundh schrieb: > > > Erik Geiger wrote: > > > [...] > >> 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 > >> pyth

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

2004-12-22 Thread Erik Geiger
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 py

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

2004-12-22 Thread Erik Geiger
Jean Brouwers schrieb: > > > See the os. spawn* functions. For example > > os.spawnv(os.P_NOWAIT, /path/to/script, args) > > /Jean Brouwers > > Thats what I've tried, but failed. Thanks anyway ;-) Greets Erik [...] -- Jemanden wie ein rohes Ei zu behandeln kann auch bedeuten, ihn in

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

2004-12-22 Thread Erik Geiger
Fredrik Lundh schrieb: > Erik Geiger wrote: > [...] >> 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. > > if you have Python 2.4, you can use the subprocess module: > > htt

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

2004-12-21 Thread Fredrik Lundh
Erik Geiger wrote: > 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.

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

2004-12-21 Thread Jean Brouwers
See the os. spawn* functions. For example os.spawnv(os.P_NOWAIT, /path/to/script, args) /Jean Brouwers In article <[EMAIL PROTECTED]>, Erik Geiger <[EMAIL PROTECTED]> wrote: > Hi, > > sorry, my english ist not that got but I'll try. > > I have a running python script (capisuit incoming

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

2004-12-21 Thread Harlin Seritt
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.

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

2004-12-21 Thread Erik Geiger
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