Running external commands "in the background"?
Question
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.,
#!/bin/sh
/home/pi/script $1 &
but was wondering if there was something built in to motion for this.
Thanks for your help
Phil
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.
Environment
Motion version: |
3.2.12+git20140228 |
ffmpeg version: |
N-75894-gc3d312b |
Libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
3.2.12+git20140228 (raspbian) |
--
PhilMueller - 12 Oct 2015
Answer
To my knowledge, the workaround that you have outlined is the recommended solution.