Can't get filter-commands to work

Support and queries relating to all previous versions of ZoneMinder
Locked
schweini
Posts: 9
Joined: Wed Mar 12, 2008 1:55 am

Can't get filter-commands to work

Post by schweini »

Hello there.

I just can't manage to get the option to run a command when a filter matched to work.

I have a little script in /tmp/zoneminderScript.pl that is world readable and executable. All it does, for starters, is to write the event-line that it got passed to a file. This works when called from the comamnd line, and also works when run from the commandline using apache's www-data user (i'm running on ubuntu).

but when i create a filter that is supposed to call '/tmp/zoneminderScript.pl', nothing happens, and zmfilter.log just shows:

Code: Select all

03/16/08 23:32:15.654832 zmfilter[22022].ERR [Auto execute script '/tmp/zoneminderScript.pl' not found, skipping filter '_TempFilter1205731933']
So, what am i doing wrong?
vejeta
Posts: 10
Joined: Tue Feb 05, 2008 2:16 pm

Post by vejeta »

Hello, did you manage to solve this?

I made an script that works. It just made it executable and did a chown
so the owner of Apache (wwwrun in my case) has access.

I'm interested in knowing how to send parameters to scripts when a filter has matching events.

E.g.
On Event Filter window

Execute command on all matches................/var/lib/wwwrun/sendmail.sh

Could it accept parameters?
Locked