Looks like that the grep command fail within the shell script.
Maybe the IP address is wrong for the shutdown call.
Could you check whether the IP address is wrong?
Also if you call 'set -x' befor you start the script you might get helpful hints.
Reply to this message by going to Community
Start a new discussion in Beginner's Corner at Community