I have a python script running in background via nohup.
It is an alarm system. Once I run the script it checks if a motion is detected.
Now i have the problem of how to disable the alarm.
Could you help me to find a good way to send a command to disable/kill the running script?
Quick and dirty method was:
Checking a txt file content: if I want to shut down the script, I modify the txt.
Something like:
if txt content is "disable":
quit
I am pretty new to python maybe you can help me.