From: Colin L. <cl...@gm...> - 2020-03-07 08:37:06
|
On Fri, 6 Mar 2020 at 23:24, Frank Bennett <fbe...@gm...> wrote: > > I'm running motion 4.2.2. I'm getting area_detect in the log file but getting nothing from the save.sh script. running: > $ /usr/local/bin/motion -c /s/motion/config/motion.conf > I get: > mv: missing destination file operand after 'keep/' That means that the mv command was only given one parameter instead of two. The only way I can see that being the case in the script you provided is if $1 is empty. I see you have an echo there, does it show anything? Colin > Try 'mv --help' for more information. > I get video strips for all movement and want to keep the ones in the selected area. > > Suggestions ? > > thanks, > Frank > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > $ cat /etc/issue > Ubuntu 18.04.2 LTS \n \l, 64b > > In /s/motion/config/camera2.conf > area_detect 69 > on_area_detected /s/motion/save.sh %f > > $ cat /s/motion/save.sh > #!/bin/bash > echo $1 > mv $1 keep/ > > _______________________________________________ > Motion-user mailing list > Mot...@li... > https://lists.sourceforge.net/lists/listinfo/motion-user > https://motion-project.github.io/ > > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user |