Sam said: > On Sun, 6 Mar 2005, Nigel Horne wrote: >> > So, should it be pointing to /var/log/messages, correct (for an input >> > file)?
[snippage happened] > My original question was also to cinfirm that the format of the output > done by clam hadn't changed since that script was written. I haven't been > using clam very long, and didn't know if vijay's script was still valid. Vijay's script examines the clamav.conf file (to give you some sense of it's being behind the times) rather than clamd.conf. An easy fix, tho. It discovers the location of the clamav log and pulls out information regarding found viruses by grep'ing for "FOUND". I didn't kill a lot of cycles looking at the code but I expect it will need manual input if you use syslog. Another easy fix. First GoTo I've seen in years. So if you know where your clamav log is, just tell it when it asks, I guess. There's a lot of code in there that could be replaced with a "LOGPATH=..." var. I didn't see anything that would require a trip to CPAN to make it work. The code rambles some and could use a re-write to clean up the readability, but hell, it works apparently. The output is quite informative. > > -- > Sam Morris, Owner > Loganet Internet Service > Logan IA, United States of America > 712-644-3578 > > _______________________________________________ > http://lurker.clamav.net/list/clamav-users.html > _______________________________________________ http://lurker.clamav.net/list/clamav-users.html