If you're a cygwin fan and have it installed on your IMail server ("Cygwin is a UNIX 
environment, developed by Red Hat, for Windows", http://www.cygwin.com/) then you'll 
have ncftp, unzip, and bash available, and can schedule this script to run in your 
'FProt' folder:

fprot-update.bash
---------------------
#!/bin/bash
/usr/bin/ncftpget -V ftp://ftp.somewhere.com/f-prot/fp-def.zip
/usr/bin/ncftpget -V ftp://ftp.somewhere.com/f-prot/macrdef2.zip
if [ -s fp-def.zip ]; then
  /usr/bin/unzip -qq -o -f -C fp-def.zip sign.def sign2.def -d /cygdrive/c/FProt/
fi
if [ -s macrdef2.zip ]; then
  /usr/bin/unzip -qq -o -f -C macrdef2.zip Macro.def -d /cygdrive/c/FProt/
fi
---------------------

This has some nice properties. It will only actually FTP each ZIP file if it is newer 
that the one you already have. Also, it will only unzip each '.def' file if it is 
newer than the one already installed. This means you can schedule it to run quite 
often, without needless downloads or unduly stressing the distribution FTP server.

To improve security, I recommend you create a special local user, with write access to 
the 'FProt' folder and nothing else, and schedule the script to run as that user.

This script doesn't update the f-prot binaries - I'm just not that trusting, but you 
could easily extend it.

Aaron.

----
Aaron Roydhouse  <[EMAIL PROTECTED]>
Tel: +64 4 381-6825 / Fax: +64 4 382-9888
The Toolbox, PO Box 11-637, Wellington, New Zealand
http://www.toolbox.co.nz/


---
[This E-mail was scanned for viruses by Declude Virus (http://www.declude.com)]

This E-mail came from the Declude.Virus mailing list.  To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.Virus".  You can E-mail
[EMAIL PROTECTED] for assistance.  You can visit our web
site at http://www.declude.com .

Reply via email to