PC Virus scanning on *nix side?

Timo Gatsonides timo at gatso.nl
Mon Apr 10 13:46:27 GMT 2000


Whoops, send a reaction too soon. It was the old 3.x-script.
The new one seems to work (but sometimes fails, maybe because too many users
are logged in at NAI). It's a little bit better, because it only retrieves
the complete 2Meg-DAT-archive file if it's newer.
But i'm not a good *nix-script-writer, i bet there are better ones, with
error-checking.

New one looks like this:

#!/bin/sh
#
# New update script, McAfee 4.x
#
# Timo, jan. 2000
#
# Get directory-listing
lynx -dump ftp://ftp.nai.com/pub/antivirus/datfiles/4.x >nai.ls
#
# Extract filename
cat nai.ls | grep 'ftp://ftp.nai.com' | grep .tar | cut -c 7- >nai.fn
#
# Check wheter it's newer than the existing one
if (cmp nai.fn old.fn); then
        echo No new dat-archive
else
        # Backup old archive
        echo Backup old dat...
        mv -f dat-latest.tar dat-old.tar
        cp -u nai.fn old.fn
        #
        # Get .tar - file
        echo Retrieving new dat...
        lynx -dump `cat nai.fn` >dat-latest.tar
        #
        # Untar and copy them
        echo Untarring and installing...
        tar -xf dat-latest.tar
        cp -av *.dat /usr/local/uvscan
        #
        # Report version info
        /usr/local/bin/uvscan --version
fi

> -----Original Message-----
> From: Dirk Allard [mailto:dirk at daniel.materials.uni-wuppertal.de]On
> Behalf Of Dirk Allard
> Sent: maandag 10 april 2000 13:11
> To: Timo Gatsonides
> Subject: RE: PC Virus scanning on *nix side?
>
>
> On Tue, 04 Apr 2000, you wrote:
>
> Hi,
>
> > If you want to filter your (send)mail automagically, have a look at
> >
> > http://satan.oih.rwth-aachen.de/AMaViS/
>
> unfortunatley this does not work with exim...
>
> > And McAfee is easy to update as well,
> > just put something like this in a crontab:
>
> Do you have an update for this script? The webpage seems to be dead.
>
> Dirk
> --
> Dirk Allard
>
> BUGH Wuppertal - Polymere Materialien
> email dirk at materials.uni-wuppertal.de
> Tel   +49-202-4393873
> Fax   +49-202-4393880
>



More information about the samba mailing list