Hi, I think you could check the exit code o sa-update and spamassassin --lint
something like #!/bin/sh sa-update 2>&1/dev/nul if [ $(echo $?) = 0 ];then echo "Up to date." ; elif [ $(echo $?) = 1 ];then spamassassin --lint 2>&1>/dev/null; if [ $(echo $?) = 0];then echo "all ok." else echo "Error. Check SA on $(hostname)." fi else echo "sa-update error on $(hostname)" fi just made this in traffic so check it for errors 2007/6/25, slamp slamp <[EMAIL PROTECTED]>:
since openprotect has been mentioned here, i just have a quick question. does spamassassin need to be restarted after an sa-update? how do we check automatically if spamassassin -D --lint did not produce any errors? I do not want to restart spamassassin automatiically if there were any errors. On 6/25/07, A M <[EMAIL PROTECTED]> wrote: > Hi, > > Or you could stop using RDJ and subscribe OpenProtect > > http://saupdates.openprotect.com/ > > They have a base stand of SARE recomended rules so it's pretty much the ones > I was using in RDJ, if you need anymore just dld them and place them in > /etc/mail/spamassasin/ > > A M > > 2007/6/25, Jake Vickers <[EMAIL PROTECTED] >: > > Steve Ingraham wrote: > > >> - > > > This is the first week since the attack on Rules Du Jour that I did not > > > get the error messages mentioned above. I have a cron job set up to > > > pull new jobs from RDJ for each Sunday night. I usually get an email > > > message stating that the rules were updated. I did not get that message > > > either. So I have nothing telling me that the rules were updated and > > > nothing telling me there were any errors. Is there any information on > > > what may be going on with RDJ? I cannot determine if I have a problem > > > or not. Any thoughts on this would be appreciated. > > > > > You can run it from the command line and watch for errors. Chances are > > good that if you didn't get anything, then nothing is wrong. > > The rules from there are updated very infrequently, with updates coming > > every 6 months or so. > > > > > > > > > > -- > AM > agmsoft(at)gmail.com --------------------------------------------------------------------- QmailToaster hosted by: VR Hosted <http://www.vr.org> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- AM agmsoft(at)gmail.com
