Most simple solution I could think of was crontab. So, as root I created a cronjob entry:
Then created /root/shutdown.sh with simply:
When 4:30PM rolls around, nothing happens...I've checked the system time with the date command and verified the time of day. Is something wrong with my syntax? Am I missing an argument? I used chmod +x shutdown.sh so it's executable but again 4:30PM rolls around and nothing happens.
Any ideas? Should I try something else?
Code:
30 15 * * * /root/shutdown.sh
Code:
shutdown now
When 4:30PM rolls around, nothing happens...I've checked the system time with the date command and verified the time of day. Is something wrong with my syntax? Am I missing an argument? I used chmod +x shutdown.sh so it's executable but again 4:30PM rolls around and nothing happens.
Any ideas? Should I try something else?