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.
Did you try to add an entry with
Looks like you have no crontab entries and therefore the file is not created.
Hopefully it will help.
sudo nano /etc/crontab -e
In the file, add a line
0 0 * * * root reboot
Haven't tried but hope this helps.
use this commend:
shutdown -r hh:mm:ss
you can add this commend to /etc/rc.local ofter reset your device run again this.