Re: Terminate a python script from linux shell / bash script

2008-07-31 Thread Nigel Rantor
Gros Bedo wrote: Thank you guys for your help. My problem is that I project to use this command to terminate a script when uninstalling the software, so I can't store the PID. This command will be integrated in the spec file of the RPM package. Here's the script I'll use, it may help someone e

RE: Terminate a python script from linux shell / bash script

2008-07-13 Thread Gros Bedo
Thank you guys for your help. My problem is that I project to use this command to terminate a script when uninstalling the software, so I can't store the PID. This command will be integrated in the spec file of the RPM package. Here's the script I'll use, it may help someone else: #!/bin/sh #

Re: Terminate a python script from linux shell / bash script

2008-07-10 Thread norseman
Gros Bedo wrote: That's not how it works. If you kill one running python script it will not effect other python scripts. Each script has its own interpreter process running. GB> So, is there a way from the Linux shell or a bash script to terminate GB> just one specific Python script ?

Re: Terminate a python script from linux shell / bash script

2008-07-10 Thread Piet van Oostrum
> Gros Bedo <[EMAIL PROTECTED]> (GB) wrote: >GB> Yes I've seen that each python script calls its own instance of >GB> Python. But how to know which is the good one in bash ? Is there a >GB> command that gets the parameters of process, so I could use grep to >GB> select the one containing the n

RE: Terminate a python script from linux shell / bash script

2008-07-10 Thread Gros Bedo
>>That's not how it works. If you kill one running python script it will not >>effect other python scripts. Each script has its own interpreter process >>running. >GB> So, is there a way from the Linux shell or a bash script to terminate >GB> just one specific Python script ? >>So just kill it

Re: Terminate a python script from linux shell / bash script

2008-07-10 Thread Piet van Oostrum
> Gros Bedo <[EMAIL PROTECTED]> (GB) wrote: >GB> I have a question about Python and Linux shell. I have a python >GB> program which is permanently resident in the end-user system. I'm >GB> currently producing a RPM package, and it works nicely. The problem is >GB> that when I uninstall it, my

Re: Terminate a python script from linux shell / bash script

2008-07-09 Thread MRAB
On Jul 10, 1:25 am, Larry Bates <[EMAIL PROTECTED]> wrote: > Gros Bedo wrote: > > Hello :-) > > > I have a question about Python and Linux shell. I have a python program > > which is permanently resident in the end-user system. I'm currently > > producing a RPM package, and it works nicely. The p

Re: Terminate a python script from linux shell / bash script

2008-07-09 Thread Larry Bates
Gros Bedo wrote: Hello :-) I have a question about Python and Linux shell. I have a python program which is permanently resident in the end-user system. I'm currently producing a RPM package, and it works nicely. The problem is that when I uninstall it, my program keeps running in the backgro