Hello,
Let us conclude first.
The fact that you get the log file means that the exec.sh script is executed.
It is the same, if you execute it from the command line. This was expected.
I assume that in case it is activated from Domoticz, the actions is not carried out.
Both closing and opening?
If you do it from the command line it is carried out?
What is the owner ship of the log files? (ls -l)
Can you try to modify the exec.sh script, so that the last line moves up?
Code: Select all
#!/bin/sh
/usr/bin/python /home/pi/domoticz/scripts/$1.py $2 $3 > /dev/null 2>&1 &
NOW=$(date +"%Y-%m-%d")
LOGFILE=/home/pi/controller.$NOW.log
echo $(date +"%Y-%m-%d %H:%M:%S") controller | tee -a $LOGFILE
A directory called "remotes" is used. What are the ownership and access rights of this directory?
Awaiting your results.
Regards