Remote shutdown error 65280
Posted: Monday 16 September 2019 16:17
I'm trying to shutdown a Volumio player remotely via a switch button with script file: -rwxr-xr-x 1 pi pi 128 Sep 16 15:55 shutdown_volumio.sh
I still get an error Error: Error executing script command (/home/pi/domoticz/scripts/shell/shutdown_volumio.sh). returned: 65280, but Volumio player did shutdown. How can I get rid of the error?
Code: Select all
#!/bin/bash
# Shutdown Volumio
sshpass -p "volumio" ssh -o StrictHostKeyChecking=no [email protected] 'sudo shutdown -hP now'