Running external commands "in the background"?
I am running an external command on the on_movie_end event. This external command may take some time to run, and I don't want motion to be paused waiting for the command to complete.
Does motion wait for external commands to complete before continuing?
If motion does wait, is there some way to tell motion to continue instead of waiting, e.g.,
on_movie_end /home/pi/script %f &
I can work around this using a shell script, e.g.,
/home/pi/script $1 &
but was wondering if there was something built in to motion for this.
Thanks for your help
BTW, I'm a new user of motion and have been impressed on the ease of use and the large feature set. Having a good example config file, with good comments has been very helpful in getting motion up and running.
| Motion version:
| ffmpeg version:
|| ffmpeg, mysql, postgresql
| Server OS:
|| 3.2.12+git20140228 (raspbian)
- 12 Oct 2015
To my knowledge, the workaround that you have outlined is the recommended solution.