I've made a script to update and upgrade at 12.15 every Friday and after both of these jobs have been completed shut down.
The updates work fine, however it does not shut down afterwards. I've tried to look it up and used the suggestions that I could find so far, but it doesn't seem to do anything, this is my script:
#crontab #minute(s) hour(s) day(s) month(s) weekday(s) command(s) 15 12 * * 5 (/usr/bin/apt-get -y update; /usr/bin/apt-get -y upgrade; /usr/bin/touch /home/pi/cron_output.log;) 2>&1 >> /home/pi/cron_output.log; /sbin/shutdown -h now;
The /sbin/shutdown -h now; part appears to not be working and I have no clue on how to fix it
I'm running this on a raspberry pi.