SOLVED Error 1536 while Running a Bash script, shutting down a Linux Mashine
Posted: Saturday 16 February 2019 22:52
hi Lara here,
i have problems running a schript on a dummy switch trigger, here is the error message i get:
i try to shut down a Debian server i use to store my files, it is running openmediavault.
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
i have made the schript escutable and a call of etherwake with another call works fine that looks like this
- kind regards Lara -
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 -