Evan Platt wrote:
If you are using Linux, you can create a a very simple shell script to do this. In fact, you can add each of the individual CF files you wish to download with relative ease.-----Original Message----- From: "Carl Chipman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Wed, 4 Feb 2004 13:54:33 -0600 Subject: Auto-download of *.cf files
I remember some people talking about using a perl script to download
new cf
files daily.
Does anyone have a vb or javascript version of it? I'm loath to
install
perl on my mailserver if there's already another version.
Ditto on that - "Add me to your list". Or actually... I missed that thread. I have Perl, so if someone has that script (I missed that thread), please let me know!
Thanks.
-- Script Starts Below this Line -- #!/bin/sh ## Originally by Doug Brott
# Randomize your download time (2 hour period) # Comment out if you needed rn=$(($RANDOM%7200)) sleep $rn
# Change to your Spamassassin CF directory
# This will cause a brute-force overwrite of the files. You might not want to do that.
cd /etc/mail/spamassassin
lftp -c "get http://PATH-TO-CF-FILE" -- End of Script --
- Please note, you MUST have lftp installed. - You can use wget also, but the syntax will be slightly different. - You can include multiple lftp lines to get each of the files as necessary.
- I have not included any PATH-TO-CF-FILE.
- There is no perl involved, this is a very simple shell script.
You can add a cron entry to call this nightly. # crontab -e
-- Add the following line -- 0 1 * * * PATH-TO-SHELL-SCRIPT > /dev/null 2>&1o
Please note that PATH-TO-SHELL-SCRIPT is the path where you saved the shell script above. Make surei it is executable.
Regards.
-- Doug Brott [EMAIL PROTECTED]
