#!/bin/bash #Variables path=/ #binaries fprot=/usr/local/f-prot/f-prot if [ ! -x "${fprot}" ]; then echo "Error: ${fprot} not found or not executable!" | /usr/bin/logger -t fprot_scan -p daemon.err exit 1 fi ${f-prot} ${path} -disinf -silent -report=/var/log/fprot.log -dumb -archive -server -collect -ai RC=$? if [ ${RC} != 0 ]; then echo "Error: ${fprot} returned rc=${RC}" | /usr/bin/logger -t fprot_scan -p daemon.err else echo "Completed successfully" | /usr/bin/logger -t fprot_scan -p daemon.err fi exit ${RC}