in reply to Performance issues
The script sa-learn (which your above bash script calls) is written in Perl and is part of the spamassassin distribution. You won't achieve anything by converting your little bash script to Perl. You should simply "nice" the sa-learn process and let your operating system do the rest.
cat spamlearn_old.sh #!/bin/sh for f in `ls /var/lib/amavis/virusmails/spam*.gz`; do echo Learn Spam-Mails from File $f ... gzip -cd $f | sudo -u amavis -H nice sa-learn --spam --showdots; done
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Performance issues
by matze77 (Friar) on Nov 28, 2008 at 16:21 UTC | |
by tirwhan (Abbot) on Nov 28, 2008 at 16:42 UTC |