I have a Raspberry Pi connected to a digital temperature probe, which measures my fermenting beer. A python script reads the temperature every second and prints it to the console, and stores it in a MySQL database.
I enjoy and benefit from watching the temperature from the console on my computer over SSH during the day time. However, during the night, I hit Ctrlc and run the following:
nohup python thermometer.py
Which allows me to shut down my SSH and my computer while retaining the temperature gathering. At 7am I hit Ctrlc and then run the following:
I do not wish to do this manually any more.
I would prefer some type of script that simply issued the
nohup command at 12am and returned to the normal
python command at 7am.
How can I do this in the most "linux appropriate" manner?
I am pretty new to Linux; for example, I learned of the nohup command on the RPi stackexchange...
I guess that either a modified python script issuing an
os command or a batch script would be most appropriate.