I ussuaky will download the file to another file name in the SA config directory, than cat them all together and run lint on them *just in case*. If lint fails I do not switch to the new file.

Steve

Chris Petersen wrote:

MAN, that's a lot of code for such a simple task. mine is just:

#!/bin/sh

# List of files to grab
   files="
           http://www.merchantsoverseas.com/wwwroot/gorilla/bigevil.cf
           http://www.merchantsoverseas.com/wwwroot/gorilla/99_FVGT_Tripwire.cf
           http://www.emtinc.net/includes/popcorn.cf
           http://www.emtinc.net/includes/backhair.cf
           http://www.emtinc.net/includes/weeds.cf
         "
# change to the spamassassin config directory
   cd /etc/mail/spamassassin

# Grab all of the requested files
   restart=0
   for file in $files; do
       if [ "$file" != "" ]; then
           wget -N "$file" 2>&1 | grep saved
       # Do we want SA to restart?
           if [ $? = 0 ]; then
               restart=1
           fi
       fi
   done

# Restart spamassassin
if [ $restart = 1 ] ; then
/etc/init.d/spamassassin restart 2>/dev/null 1>/dev/null
echo "Restarted SpamAssassin"
fi




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to