I want to build a water dispanser using a raspberry pi. The pi is attached to a touch screen. Further, I made a python script to control everything.
From time to time, I want to adjust the script to make some changes or improvements. Currently I use putty to connect to the pi to change the code from my computer. When I want to re-start the script so it has the newest changes, I attach a keyboard to the pi to re-start it through the console.
Is there a way so that I can start the python script from my Computer through putty on my pi so that it continues to run even when I close the putty connection and the gui is visible on the touch screen?
I can run the script through putty from my Desktop when I use
export DISPLAY=:0 but the script closes as soon as I close putty.