Robert Allerstorfer wanted us to know: >The reason is that this would save system resources in scripts like my >SoftlabsAV (http://antivirus.softlabs.info/) which determines those >versions every time an infected mail arrives, via procmail. Currently, >I have to make several calls: >clamscan --stdout -V >clamscan --debug --no-summary /dev/null 2>&1 >sigtool --stdout -i $DB_DIR/daily.cvd >sigtool --stdout -i $DB_DIR/main.cvd
Put that in your freshclam cron script and dump the output to a file. Then in your SoftlabsAV script, you just read that file instead of making all of the calls. 1) The db versions won't change unless freshclam runs, so that's not going to change. 2) The version of clamscan won't change unless you manually upgrade it. If you install an rpm, it will preserve the existing freshclam script and run it at the end (at least my rpms do, maybe yours don't). Anything to make the system load easier :-) -- Regards... Todd We should not be building surveillance technology into standards. Law enforcement was not supposed to be easy. Where it is easy, it's called a police state. -- Jeff Schiller on NANOG Linux kernel 2.6.3-8mdkenterprise 2 users, load average: 2.49, 1.17, 0.45 ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Clamav-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-devel
