BUG: Unable to run python script on_motion* etc...
motion Version 3.2.12+git20140228
Raspberry Pi 3 model B
Topic alredy opened on Mar 30, 2014 here
Current "half-solved" way is to run motion in a non-daemon mode ("sudo motion -n").
If I set a py file destination Command to be executed when whatever on_something happens, the command is not interpreted... I put the log file with maximum verbosity but it just said that the command has been launched, and nothing more...
If I execute a bash command with a Python file execution inside, the bash scripts are executed properly but once the execution arrives to the python, it doesn't get executed.
Example of my file "sound.sh"
BTW just to be clear all the file asked to be executed by motion has been set executable +x and have been set ownership to user "motion" and group "motion". I tried python and python3 execution with same issue
# Command to be executed when a motion frame is detected (default: none)
-- SimoneRiccardi - 23 Jun 2016
| Motion version:
| ffmpeg version:
| Shared libraries:
|| ffmpeg, mysql, postgresql
| Server OS:
|| Raspbian GNU/Linux 8