You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Chris <cp...@embarqmail.com> on 2018/08/18 17:31:35 UTC
KAM.cf update script
Does anyone have a script that I can run as a cron job to update the
KAM.cf file?
Thanks
Chris
--
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
12:27:45 up 14:39, 1 user, load average: 8.88, 3.45, 1.40
Description: Ubuntu 18.04.1 LTS, kernel 4.15.0-32-generic
Re: KAM.cf update script
Posted by RW <rw...@googlemail.com>.
On Sat, 18 Aug 2018 18:46:57 +0100 (BST)
jpff wrote:
> I have an entry in /etc/cron.daily
>
> #!/bin/csh
If you haven't already seen the arguments against csh scripting, I
suggest you google 'csh programming considered harmful'.
I suggest replacing
mv KAM.cf KAM.cf.old
/usr/bin/wget <URL>
with
cp -p KAM.cf KAM.cf.old
/usr/bin/wget -N <URL>
The latter requests that the server only sends the file if it has a
newer version.
Re: KAM.cf update script
Posted by Chris <cp...@embarqmail.com>.
On Sat, 2018-08-18 at 18:46 +0100, jpff wrote:
> I have an entry in /etc/cron.daily
>
> #!/bin/csh
>
> cd /etc/spamassassin
>
> mv KAM.cf KAM.cf.old
> /usr/bin/wget http://www.pccc.com/downloads/SpamAssassin/contrib/KAM.
> cf
> /usr/bin/diff KAM.cf KAM.cf.old | /usr/bin/mail -s KAM_changes jpff
> /bin/systemctl -l reload spamassassin.service
>
> exit 0
>
> Sems to work OK; noting special
>
Thanks, looks good, I'll give it a try.
>
> On Sat, 18 Aug 2018, Chris wrote:
>
> > Does anyone have a script that I can run as a cron job to update
> the
> > KAM.cf file?
> >
> > Thanks
> > Chris
> >
> > --
> > Chris
> > KeyID 0xE372A7DA98E6705C
> > 31.11972; -97.90167 (Elev. 1092 ft)
> > 12:27:45 up 14:39, 1 user, load average: 8.88, 3.45, 1.40
> > Description: Ubuntu 18.04.1 LTS, kernel 4.15.0-32-generic
> >
>
--
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
12:49:37 up 15:01, 2 users, load average: 1.67, 3.06, 2.44
Description: Ubuntu 18.04.1 LTS, kernel 4.15.0-32-generic
Re: KAM.cf update script
Posted by jpff <jp...@codemist.co.uk>.
I have an entry in /etc/cron.daily
#!/bin/csh
cd /etc/spamassassin
mv KAM.cf KAM.cf.old
/usr/bin/wget http://www.pccc.com/downloads/SpamAssassin/contrib/KAM.cf
/usr/bin/diff KAM.cf KAM.cf.old | /usr/bin/mail -s KAM_changes jpff
/bin/systemctl -l reload spamassassin.service
exit 0
Sems to work OK; noting special
On Sat, 18 Aug 2018, Chris wrote:
> Does anyone have a script that I can run as a cron job to update the
> KAM.cf file?
>
> Thanks
> Chris
>
> --
> Chris
> KeyID 0xE372A7DA98E6705C
> 31.11972; -97.90167 (Elev. 1092 ft)
> 12:27:45 up 14:39, 1 user, load average: 8.88, 3.45, 1.40
> Description: Ubuntu 18.04.1 LTS, kernel 4.15.0-32-generic
>