Page 1 of 1

Can't get filter-commands to work

Posted: Mon Mar 17, 2008 5:52 am
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?

Posted: Tue Apr 15, 2008 9:45 am
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?