i have problems running a schript on a dummy switch trigger, here is the error message i get:
Code: Select all
2019-02-16 21:13:56.746 Error: Error executing script command
(/home/pi/domoticz/scripts/sh/shutdownfile.sh). returned: 1536
the thing is, running the script from the raspberry pies cmd per ssh works fine but when i try to call the script jusing domoticz I just get that error.
here is said script
Code: Select all
#!/bin/bash
sshpass -p 'Password' ssh -t root@Address 'shutdown -h now'
#shuts down a linux client with given adress
Code: Select all
#!/bin/bash
wakeonlan MAC-Address
#sends magic package vor given adress.
- kind regards Lara -