Google is correct for a change!I now wish to start the script and want it to run 24/7 at 5min intervals, but I am not sure this will do that?
"add the following line in your crontab -e:
2 5 * * * ~/solis/solis.sh > /dev/null
@reboot sleep 123 && ~/solis/solis.sh > /dev/null"
Google seemed to imply it was a once a day command?
The first line will run solis.sh at 05:02 every morning.
The second line will run it about 2 minutes after the Pi has booted.
I don't know what that solis.sh script does. It might sit there doing something every 5 minutes. But to use cron to run something every 5 minutes you'd use this line
Code:
*/5 * * * * ~/solis/solis.sh >/dev/null
Code:
*/5 * * * * ~/solis/solis.sh >~/solis/solis.sh.log 2>&1
Statistics: Posted by rpdom — Fri Dec 13, 2024 12:47 pm