PROBLEM bash script does not start (ruby?)
Posted: Wednesday 13 March 2019 12:33
Hi all,
i'm trying to use a bash script to start a command.
I've associated the script to a dummy switch.
The log is ok, it seems that the script is correctly executed but the command inside the script is not executed.
When i execute the .sh script from command line it's ok.
This is the script:
#!/bin/bash
/home/pi/.rvm/gems/ruby-2.5.1/bin/midea-ac set xxxx --power=off > /dev/null &
if i remove the & at the end of the script, i see error 32512 in the log.
As you can see it's very simple but it does not work. The command i execute is the midea-ac ruby package that i've installed following the instructions from here:
https://github.com/yitsushi/midea-air-condition
Is it related to ruby permissions from Domoticz?
Can you help me?
Regards,
vrega
i'm trying to use a bash script to start a command.
I've associated the script to a dummy switch.
The log is ok, it seems that the script is correctly executed but the command inside the script is not executed.
When i execute the .sh script from command line it's ok.
This is the script:
#!/bin/bash
/home/pi/.rvm/gems/ruby-2.5.1/bin/midea-ac set xxxx --power=off > /dev/null &
if i remove the & at the end of the script, i see error 32512 in the log.
As you can see it's very simple but it does not work. The command i execute is the midea-ac ruby package that i've installed following the instructions from here:
https://github.com/yitsushi/midea-air-condition
Is it related to ruby permissions from Domoticz?
Can you help me?
Regards,
vrega