Todd Lyons <[EMAIL PROTECTED]> wrote: > Robert Blayzor wanted us to know: > > >[foo:/usr/local/share/clamav] sigtool -i daily.cvd > >Version: 459 > >I'm really interested in just getting Version #'s from within a PERL > >script. Anyone know how I can accomplish this natively without having > >to rely on system calling sigtool externally? > > Well by running strings, I see this: > smtp1 clamav # strings daily.cvd | head -1 > ClamAV-VDB:17 Aug 2004 14-49 > +0100:459:1653:2:56716b5ea7fb38e049ba3f3657e5ab35:sBj2SGZrCm7xW+p67J+n7 > mbTJqxpgwtoYgGjM0bwhyAooG5yLOXE8aqH7aLfGl25hR6vvPdENjr0Nm5qDWm3/46P6SAn > xKSgSqZg4d2W5/iItqm24CbRbqavOMJkvggXP9pucFEt3hwxdPTOrnH6oKVYwb7rXk0EekR > Fl30O8Jd:trog > > So I would think that some sort of string search for ClamAV-VDB would > put you in the right spot to find the version number (in between : marks > after the +0100 timestamp). > -- > Regards... Todd
strings /path/to/daily.cvd | head -1 | tr -s ":" "\n" | sed -e '/[[:alpha:]]/d' | head -1 The above will give you the version number if it's in the same place each time. It's only a quick one, so it may be refinable. Matt ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users