Chris: I made a few little changes to your script to have it use a "tmp"
file, then ask is the --lint was okay to go forward. Only problem, it's not
suitable for unattended updates via cron because of the lint check and
interactive "yes" need to go ahead. If no "yes" within 30 sec, it quits.

Needs more work, but stay compact. 

At 09:54 PM 1.17.2004 -0800, 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
>
                              
>-- 
>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
>
>

Best regards,
Jack L. Stone,
Administrator

Sage American
http://www.sage-american.com
[EMAIL PROTECTED]


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