I am trying to get freshclam to execute a COMMAND whenever it encounters
an error. The help command reports the following:
--on-update-execute=COMMAND execute COMMAND after
successful update
--on-error-execute=COMMAND execute COMMAND if errors occured
--on-outdated-execute=COMMAND execute COMMAND when software
is outdated
So my test command is as follows:
ns.ABS-CompTech.com root
[/root] freshclam --on-error-execute=/dir/ReportClamAV.sh
--on-outdated-execute=/dir/ReportClamAV.sh 2>&1
ClamAV update process started at Sun Jul 20 13:49:06 2008
main.cld is up to date (version: 47, sigs: 312304, f-level: 31, builder:
sven)
WARNING: Current functionality level = 30, recommended = 31
Please check if ClamAV tools are linked against the proper version of
libclamav
DON'T PANIC! Read http://www.clamav.net/support/faq
daily.cld is up to date (version: 7764, sigs: 48710, f-level: 33,
builder: ccordes)
WARNING: Current functionality level = 30, recommended = 33
Please check if ClamAV tools are linked against the proper version of
libclamav
DON'T PANIC! Read http://www.clamav.net/support/faq
I have tested the /dir/ReportClamAv.sh script, and it works as
expected. However the command is not getting launched from the command
line. Any Suggestions?
Our Email is Filtered using the SPAMZapper. More than 35 Million connections
filtered and still counting. SPAMZapper stops Spam, Viruses, and other Malware
before it reaches your PC.
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml