Background output of script
Posted: Thursday 23 March 2017 6:33
Hi everyone,
i would like to launch a command line in the On/Off action of a switch.
Is it possible?
Currently, i use
but i would like to be able to see the output of the script in case of.
Therefore i think about launch the script in a "screen"
but when i try
it does not work.
Have 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
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