Is it possible to re-boot my Raspberry Pi at midnight each night? I know in Linux, you'd use
crontab, but I can't seem to find
To edit the root crontab:
sudo -i crontab -e
put the entries you want in; there's a handy template loaded by crontab that shows you what fields are what. Once you're done and saved out of the crontab editor:
to get back to the user shell.
To reboot the machine at midnight and 8 am, you need the line:
0 0,8 * * * reboot
though really, Linux doesn't need to be rebooted much, if at all.
use this commend:
shutdown -r hh:mm:ss
you can add this commend to /etc/rc.local ofter reset your device run again this.