issue with os.execute
Posted: Sunday 16 January 2022 18:39
Hi all
I am reusing a script un dz.vents but facing issue with os.execute that is not working.
The command is working well in a terminal.
The domoticz is installed on a raspbery under buster.
the instruction is :
the command print in the log is : "/usr/bin/python3 /home/pi/domoticz/scripts/python/MyRenault.py /home/pi/domoticz/scripts/python/credentials.json /var/tmp/zoe.txt &"
What could be the issue ?
Thanks for your support
I am reusing a script un dz.vents but facing issue with os.execute that is not working.
The command is working well in a terminal.
The domoticz is installed on a raspbery under buster.
the instruction is :
Code: Select all
command = "/usr/bin/python3 "..scriptPython.." "..credentials.." "..fichierTemp.." &"
domoticz.log(command)
os.execute(command)
What could be the issue ?
Thanks for your support