I'm trying to shutdwon my pc at 2 am once a week.
If I use the user crontab of root (sudo crontab -e)
30 2 * * 3 shutdown -h now
the shutdown will not be performed.
However, if I place the same command for the root in the system-wide crontab (sudo vim /etc/crontab) the pc will shut down:
30 2 * * 3 root shutdown -h now
What's the difference? Both times root is going to shutdown my pc. Why does it only work if it is in the system-wide crontab?