Motion - Support Question 2015x 10x 12x 201219

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.
Topic revision: r2 - 22 Nov 2015, MrDave
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.