Send Motion-user mailing list submissions to
        motion-user@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
        motion-user-requ...@lists.sourceforge.net

You can reach the person managing the list at
        motion-user-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."


Today's Topics:

   1. on_area_detect script help (Frank Bennett)
   2. Re: on_area_detect script help (prismb...@gmail.com)
   3. Re: on_area_detect script help (Colin Law)


----------------------------------------------------------------------

Message: 1
Date: Fri, 6 Mar 2020 16:22:20 -0700
From: Frank Bennett <fbennet...@gmail.com>
To: motion-user@lists.sourceforge.net
Subject: [Motion-user] on_area_detect script help
Message-ID: <ea647ed5-05ab-351f-b9ce-4ead1a5ca...@gmail.com>
Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Fri, 6 Mar 2020 15:40:31 -0800
From: prismb...@gmail.com
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] on_area_detect script help
Message-ID:
        <CAGd+P+YLK-R=tzoqxp4fwakdxf_1s7bmwmnyrqufovdjrms...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

maybe:
mv $1 keep/$1

Also are you sure it's running above the keep dir? I don't see a cd ~ or
anything like that...

On Fri, Mar 6, 2020 at 3:24 PM Frank Bennett <fbennet...@gmail.com> 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/'
> 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
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 3
Date: Sat, 7 Mar 2020 08:36:29 +0000
From: Colin Law <clan...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] on_area_detect script help
Message-ID:
        <CAL=0glvvd4mduvpg9-hfptfbcaaxfve-+b1xu2jdbcttzjn...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

On Fri, 6 Mar 2020 at 23:24, Frank Bennett <fbennet...@gmail.com> 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
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user



------------------------------



------------------------------

Subject: Digest Footer

_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user


------------------------------

End of Motion-user Digest, Vol 165, Issue 1
*******************************************

Reply via email to