From: Kenn Humborg (kenn at domain bluetree.ie)
Date: Fri 05 May 2000 - 12:49:40 IST
> there'll be more mutants soon. Gotta get a cron job set up to download the
> updates from Sophos hourly I think ;)
Run this from cron:
[root at domain cerberus bin]# cat get-sav-updates.sh
#!/bin/sh
cd /var/spool/sophos-updates
ls -l *.ide > before.list
# Get the latest list of IDE files
rm -f list.txt
wget -q http://www.sophos.com/downloads/ide/list.txt
# Get any new or updated IDEs in the list
if [ -f list.txt ] ; then
wget -q -c -N `cat list.txt`
fi
# delete any IDE files older than 60 days
rm -f `find . -name \*.ide -mtime +60`
# Make a nice diff as a summary of the job
ls -l *.ide > after.list
diff before.list after.list
rm -f before.list after.list list.txt
The output shows you what was downloaded and deleted.
Later,
Kenn
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:02 GMT