Schedule Daily Reboot?

Hello,
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!

Well command not found means next try should be to install the command
sudo apt-get install cron

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

Are the same apt sources configured on both machines?
Did you run sudo apt-get update?

Honestly, I don’t know what apt sources are configured? They were both installed from the same source.

I ran sudo apt-get update.
Did a sudo reboot.
The ran sudo apt-get install cron again
Success!
Edited crontab and added the shutdown command and rebooted again.

Is my line for shutdown correct? Any errors in it?

0 4   *   *   *    /sbin/shutdown -r +5

Thanks so much for all your help!

Also, if I wanted to change this line:

0 4   *   *   *    /sbin/shutdown -r +5

Edit: I’ve tested and removed the “+5”
I changed the 0 to 45 and the 4 to 10 and it rebooted at 10:45am

Thanks!