-----Original Message----- 
        From: [EMAIL PROTECTED] on behalf of Chris Petersen 
        Sent: Sat 1/17/2004 9:54 PM 
        To: [EMAIL PROTECTED] 
        Cc: 
        Subject: Re: [SAtalk] Ann: "Rules De Jour": An automated way to keep upwith 
the latest rulesets
        
        

        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 
                                                                                       
                          
        -- 
        Chris Petersen 
        Programmer / Web Designer 
        Silicon Mechanics:  http://www.siliconmechanics.com/ 
        Blade Servers:      http://www.siliconmechanics.com/c292/blade-server.php 
        1U Servers:         http://www.siliconmechanics.com/c272/1u-server.php 




        ------------------------------------------------------- 
        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 

áy!Mz×j)b²ÊhžÊ+yÖòÉb¦Ç¢}´Óëzhž­à÷«zw¢s©ztè¢[z÷žžÖt‰íz
Ú*'Içæëy§m†‡ÄrX©±æ+â·!^n»š¯-ùŠp'j¢˜ !¶Úÿ
0yÉb¦Ç¢z+ƒú,vt©jf¬±«,Š{Z–IšŠX§‚X¬µ*Z™«,jË"žÖ’X¬¶Ë(º·~Šàzw­†Ûi³ÿåŠËl²‹«qç讧zßåŠËlþX¬¶)ßû)jf¬±«,Š{Z–

Reply via email to