I'm trying to use my TFT 3.5 screen on my rpi to rotate different scripts. The idea is to show pihole dashboard, digital clock and a custom message.
I have tried to do it using the crontab:
*/3 0 0 0 0 script1 */10 0 0 0 0 script2 */15 0 0 0 0 script3
However, this solution is not perfect as scripts need to be killed and restarted.
Another solution I tried was to create a custom "rotate" script which executes three other scripts. Problem here is that I use
sleep statements, which is kinda dirty solution.
Is there any other way to execute three different scripts (without restarting the processes) and rotate the output (like every 2 minutes) which is sent to the TFT screen?
I'm using latest paspbian image.