i would like to launch a command line in the On/Off action of a switch.
Is it possible?
Currently, i use
Code: Select all
script:///home/pi/domoticz/scripts/python/script.py & (with or without "&")Therefore i think about launch the script in a "screen"
but when i try
Code: Select all
script:///screen -dmS water /home/pi/domoticz/scripts/python/script.pyHave you got an idea to run a command directly in the "action"? Or another way to be able to see the output of a script is executing under raspbian?
Thank you