I'm new in Linux and I want to schedule a reboot at midnight. How should I do it?
Edits:
-
I'm sorry I didn't put the complete details. I want a reboot every 3rd Saturday of the month at 23:30.
-
I don't know what's wrong but I cannot find crontab. What I have is
cron.d
;cron.daily
;cron.weekly
;cron.monthly
;
I'm sorry for the noob question. Pls help me. Thanks.
Best Answer
Type
shutdown -r 0:00
and it will reboot at midnight.If you want to reboot each night, add a cron entry using crontab -e as root to run shutdown -r each midnight