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
In reply to Re: Performance issues
by tirwhan
in thread Performance issues
by matze77
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |