I'm just trying to understand the behavior I'm seeing. I tried adding this line to my AWS EC2's (root) crontab:
00 00 * * * shutdown -h now
But this never executed. When I added this to my own ec2-user crontab (including sudo) it did work. I've been able to run different commands from the root crontab, so why can't I run a shutdown command?
crontab -e) or in the system crontab at/etc/crontab?crontab -e