how to retreive PID of specific python script using pidof
Im trying to write a simple script that will only launch a process if it is not already running.
I want to use the return value from 'pidof' to find out whether it is running.
However the process i am looking for is a script launched with python. Thus if I use "pidof python" I get multiple PIDs returned which is no use.
I also thought of using return value from grep <script.py> but this returns the grep process aswell.. argh!