I believe the User Guide explains that an Execute command of /usr/local/bin/zmtodrive.sh %EI% will execute as /usr/local/bin/zmtodrive.sh <id_of_the_event> <path_to_event>
A simple test script
Code: Select all
#!/bin/sh
LOGF=/var/lib/zoneminder/temp/zmtodrive.log
echo "1: >$1<" >${LOGF} 2>&1
echo "2: >$2<" >>${LOGF} 2>&1
exit 0
Code: Select all
1: >%EI%<
2: >/usr/share/zoneminder/www/events/4/18/06/03/20/35/54<
Thank you.