/sbin/shutdown -h now; not working in crontab
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite 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. cron shutdown share | improve this question asked yesterday Joeri 1 1 New contributor Joeri is a new contributor to this site. Take care in asking for clarification, commenting, and ...