can't launch apython script from sh from blocky
Posted: Tuesday 05 January 2021 22:45
Hi!
I thought I could find the solution but I 'm stuck on a blocky script or I want to launch a script sh .. a simple script sh which launches a python script, here in image the script:
then the sh script:
well the python script is not worth it, or the start:
the command /home/pi/domoticz/scripts/turnOnChambreEliza.sh works perfectly in a terminal and I have no errors in the domoticz logs ..
the two scripts (sh and py) are in / home / pi / domoticz / scripts /
the rights are in 777 on the 2 files
thank you
I thought I could find the solution but I 'm stuck on a blocky script or I want to launch a script sh .. a simple script sh which launches a python script, here in image the script:
then the sh script:
Code: Select all
#! / bin / sh
/usr/bin/python3/home/pi/domoticz/scripts/turnOnChambreEliza.py > /dev/null 2> & 1 &
exit 0
Code: Select all
#!/usr/bin/env python3
asyncio import
import os
.........
the two scripts (sh and py) are in / home / pi / domoticz / scripts /
the rights are in 777 on the 2 files
an idea please? I 'm stuck with it and the only solution I see is a hack to go through an http request and launch python from a web server .. or ... some will tell me to pass everything on lua. .. but a little lazy. .-rwxrwxrwx 1 pi pi 1748 Jan 5 21:21 turnOnChambreEliza.py
-rwxrwxrwx 1 ft ft 102 Jan 5 21:38 turnOnRoomEliza.sh
thank you