(SOLVED) Cannot run script via Filters

Previous development branch now released as 1.36
Locked
Johnny1337
Posts: 14
Joined: Tue Oct 15, 2019 11:22 am

(SOLVED) Cannot run script via Filters

Post by Johnny1337 »

Hi,

I am trying to run a bash-script when on all matches. It is setup like this:
Monitor id - in set - 1,2,3,4
Execute command on all matches is checked and script is /usr/bin/script.sh.

I have tried setting permissions with chmod 777.

It works when running "zmfilter.pl --filter_id=3". But it won't work when running via Execute on web or in background.

Any idea?

Thanks in advance!

[Edit]
I had to specify '/usr/bin/rclone' instead of just rclone in my script. Otherwise www-data wasn't allowed to run it.
Last edited by Johnny1337 on Thu May 07, 2020 5:15 pm, edited 1 time in total.
Johnny1337
Posts: 14
Joined: Tue Oct 15, 2019 11:22 am

Re: Cannot run script via Filters

Post by Johnny1337 »

Sorry for postning, found out www-data doesn't have permission to run rclone.

Have to figure out a solution.
Locked