| Email General questions, webmail, mailing lists. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#46 (permalink) |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
|
You might want to run this instead... this is the one that gave me the output they needed to fix my problem:
Code:
#!/bin/sh echo "Synching Spam" sa-learn --sync -D echo "Done"
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
|
|
#47 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Jun 2003
Lives in Denver
Hosted on D9
142 posts
Gave thanks: 4
Thanked 3 times
|
In the middle of one of the three the cron results, I got this error message...
Code:
Learned tokens from 2 message(s) (2 message(s) examined) bayes: bayes db version 0 is not able to be used, aborting! at /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/BayesStore/DBM.pm line 196. Learned tokens from 3 message(s) (3 message(s) examined) Learned tokens from 0 message(s) (2 message(s) examined)
__________________
"In the end, everything will be fine - if it is not fine, it is not the end." PseudoSwedelarvez.com Dime9 Last edited by pseudoswede; August 31st, 2007 at 1:27 PM.. |
|
|
|
|
|
#48 (permalink) | |
|
Surpass Fan
Comfy Contributor
Joined in Feb 2004
Lives in Norfolk, England
Hosted on Pass32
167 posts
Gave thanks: 23
Thanked 19 times
|
Quote:
I just used google to search for that error message and came across this thread in the CentOS mailing list. The original poster there said the error comes and goes periodically (ie just like it did when you ran the learnspam script). He says it was because there were two versions of spamassassin installed or the older version didn't get removed when he upgraded. Hope this helps, are tech support still looking into the problem? Cheers Jonathan
__________________
Server: Pass32 and dedicated server |
|
|
|
|
|
|
#49 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Dec 2005
4 posts
Gave thanks: 1
Thanked 0 times
|
Hi everyone,
I tried to get this script functioning this morning, but my cron output spits this back at me: /bin/sh: /home/******/script/learnspam: /bin/sh : bad interpreter: No such file or directory My site (andiyar.com) is running on sonet. Anyone care to tell a bemused user what that means? ~A~ Last edited by andiyar; September 15th, 2007 at 2:31 AM.. |
|
|
|
|
|
#50 (permalink) | |
|
Surpass Fan
Comfy Contributor
Joined in Feb 2004
Lives in Norfolk, England
Hosted on Pass32
167 posts
Gave thanks: 23
Thanked 19 times
|
Quote:
Two things spring to mind... firstly it could be that the you have used a windows text editor (eg notepad) to edit/save the file and therefore contains windows style linefeeds. Try using a different text editor that saves in Unix format if you don't have access to the dos2unix command. Secondly, it could be that the bash executable is located at /bin/bash Also it is worth checking that the command in the cron entry contains only /home/******/script/learnspam and no other text. Regards Jonathan
__________________
Server: Pass32 and dedicated server |
|
|
|
|
| This user thanks jdcopelin for this great post! | andiyar (September 15th, 2007) |
|
|
#51 (permalink) | |
|
Registered User
Fresh Surpasser
Joined in Dec 2005
4 posts
Gave thanks: 1
Thanked 0 times
|
Quote:
Hi Jonathan, Actually, I'd simply uploaded the file and then edited it using the built in file manager's code editor via CPanel. Anyway, after posting that message I decided to try downloading the script again, reuploading it, and seeing if that worked. And... it did. Not sure why, but my inbox had a nice cron output this morning. Weird - unless I'd accidentally changed something in the file without noticing. I was sure that bash was where it was supposed to be as I threw in another script and it punched output out to me, so I guess I just stuffed up the learnspam script somewhere. Thanks for your help - and for the great script ![]() ~A~
__________________
andiyar.com sonet
|
|
|
|
|
|
|
#52 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Feb 2004
Lives in Norfolk, England
Hosted on Pass32
167 posts
Gave thanks: 23
Thanked 19 times
|
You are welcome, I'm glad it is working for you now. And thank you for the feedback!
Regards Jonathan
__________________
Server: Pass32 and dedicated server |
|
|
|