First login as root then:
crontab -eAdd line (command will run at 2:05 am and it will give warning about reboot to all users and reboot in 10 minutes):
5 2 * * * /sbin/shutdown -r +10Crontab command explanations (http://www.adminschoice.com/crontab-quick-reference):
* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)
|
find / -name shutdownAlso if you have problems with shutdown-command you can try using reboot-command.