You can set a script as a daemon, like in this example I had set an mqtt_sub script as a daemon so when I get a message from anywhere on the selected topic, I run another program to take a pic through webcam.
satendrapandeymp/python-Daemon
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|