I think the update script had to do a more structurate work.
My 0,2 eurocents:
#/bin/bash
set -e
tmpdir=/tmp/fprot-cron.$$.$RANDOM
mkdir $tmpdir
pushd $tmpdir >/dev/null
wget --passive-ftp http://www.complex.is/cgi-bin/get_randomly?fp-def
unzip fp-def.zip
mv -f *.DEF /usr/local/f-prot/
rm -f *
wget --passive-ftp http://www.complex.is/cgi-bin/get_randomly?macrdef2
unzip macrdef2.zip
mv -f *.DEF /usr/local/f-prot/
popd >/dev/null
rm -rf $tmpdir

Working every night is reasonable.
Regards.


> > ----------------------------
> > #!/bin/bash
> > # update_fprot.sh
> > #
> > cd /usr/local/f-prot
> > ncftpget ftp://updates.f-prot.com/pub/macrdef2.zip
> > ncftpget ftp://updates.f-prot.com/pub/fp-def.zip
> > unzip -o fp-def.zip
> > unzip -o macrdef2.zip
> > ----------------------------
> > 
> > Add crontab to check every hour
> > 0 * * * * /usr/local/f-prot/update_fprot.sh 2>&1 >/dev/null
> > or less often.. 6hrs
> > 0 */4 * * * /usr/local/f-prot/update_fprot.sh 2>&1 >/dev/null


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to