Inscrit le: 03 Oct 2017
|Posté le: Mer 29 Nov - 09:06 (2017) Sujet du message: Cron won't run
I'm trying to set up a cronjob to reboot the Pi every 5 minutes (just for testing).
I made a script named /usr/reboot.sh which contains the line sudo reboot
Then I CHMOD it to +x
Then I made a cronjob, which gives me this output when running crontab -l:
* /5 * * * * sudo sh /usr/reboot.sh
Then nothing happens
If I run "sudo sh /usr/reboot.sh" from a terminal, the Pi reboots.
What have I done wrong here?
I didn't find the right solution from the Internet.
animated commercial product video