Up front, I am still at version 2015.12-4 on my ATVs. I’ve been searching online for a way to schedule a daily reboot on Linux/OSMC/KODI/whatever. The first command I see to run is “sudo crontab -e” to edit crontab. But, when I run that command in Putty I get “sudo: crontab: command not found”.
Anyone willing to hold my hand and walk me through setting up a daily reboot on my ATVs? Thanks!
Thanks for that fzinken! I am very much a novice with Linux. cron installed and I was able to edit and add the following line:
0 4 * * * /sbin/shutdown -r +5
The help I found online says this will reboot me at 4:05am each morning. I added that line to cron with no “comment characters” in front of it and I did a sudo reboot after saving cron with the new line in it.
Ugh! Well, that worked on one box. The next box I tried to install cron on gave me this:
sudo apt-get install cron
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package cron is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source