I'm trying to write a script that monitors my python program to see if it is already running.
I started by trying to assign this script to an object:
processWatch = os.system("sudo ps afxj | grep quickConversion.py")
if processWatch > 2: #if more than one is running it won't run.
while 1:
"rest of loop"
I then tried to monitor the object for more than one instance.