Sophos sweep script

S Mohan smohan at VSNL.COM
Thu Jan 23 08:51:43 GMT 2003


You can do it from commandline as under. Let us assume you want to scan
files recursively under /data and mail them out to a at bc.com. Assuming Linux
OS here with bash.

On bash prompt give:
find /data -type f | xargs ./checkout.sh

<checkout.sh>
sweep $1 (give all arguments necessary here to clean/ delete/ disinfect etc)
[ -e $1 ] && mutt a at bc.com -a $1 -s "Scanned file - $1" < msgtxt
</checkout.sh>

msgtext should have the standard body of the message.

HTH
Mohan
-----Original Message-----
From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]On
Behalf Of Wayne
Sent: 23 January 2003 13:57
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Sophos sweep script


Hi All

Does anyone have a script that I can use to run sweep to scan files on the
drive and then email the out ?



Thanks again.

Wayne



More information about the MailScanner mailing list