Hi Gary, > I'm actually a windows guy who has been converting to linux for some time > so my scripting is rusty and primitive (cause that's what I know) but it > works.
I have similar scripts but with rsync. Forgot all about wget :) D'oh! Hope you don't mind some scripting tips? > if [ -f bigevil.cf ] > then > rm -f bigevil.cf > fi Can be shortened to [ -f bigevil.cf ] && rm -f bigevil.cf > if [ -f /tmp/bigevil.cf ] > then > rm -f bigevil.cf > fi Same. [ -f /tmp/bigevil.cf ] && rm -f bigevil.cf > cmp /tmp/bigevil.cf /etc/mail/spamassassin/bigevil.cf >/dev/null > 2>&1 cmp -s will not produce any output so you don't need the /dev/null redirect if fact you can do cmp -s /tmp/bigevil.cf /etc/mail/spamassassin/bigevil.cf || { # do the mv's and emails here } -- Regards, +-----------------------------+---------------------------------+ | Peter Kiem .^. | E-Mail : <[EMAIL PROTECTED]> | | Zordah IT /V\ | Mobile : +61 0414 724 766 | | IT Consultancy & /( )\ | WWW : www.zordah.net | | Internet Services ^^-^^ | ICQ : "Zordah" 866661 | +-----------------------------+---------------------------------+ My current spamtrap address is [EMAIL PROTECTED] ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk