Page 1 of 1

Calling a rfxcmd python script gives error 256

Posted: Monday 19 July 2021 23:38
by solarboy
I have created an sh script for rfxcmd.py that works beautifully if I directly execute it from the GUI or via putty.ssh. However if I try to call the script from within Domoticz (which is in the domoticz/scripts folder) I get error 256.

The rfxcmd.py script and associated files are in a directory within domoticz/scripts called "rfxcmd" and all files have execute permissions set for "anyone"

I am wondering if anyone has any thoughts on how I might resolve this ?

Re: Calling a rfxcmd python script gives error 256

Posted: Tuesday 20 July 2021 0:07
by waltervl
Domoticz runs the script as the user that runs Domoticz.
Try to run the script with sudo to see if it still runs.
If you have file paths in your script have them absolute not relative.

Re: Calling a rfxcmd python script gives error 256

Posted: Tuesday 20 July 2021 0:12
by solarboy
OK, sorry, I fixed this now, needed the full path, I already had sudo in there. Thanks Walter !