Terminate a python script from linux shell / bash script
gros_bedo at hotmail.com
Thu Jul 10 17:07:44 CEST 2008
>>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
>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.
Yes I've seen that each python script calls its own instance of Python. But how to know which is the good one in bash ? Is there a command that gets the parameters of process, so I could use grep to select the one containing the name of my script ?
Votre contact a choisi Hotmail, l'e-mail nouvelle génération. Créez un compte.
More information about the Python-list