In Solaris, that would be something like: su - user1 -c "sa-learn --spam /home/user2/Maildir/.Spam/cur/"
Jon
Aaron Axelsen wrote:I am trying to run a cronjob as root which will learn a different accounts spam into my spam db. Example command: sa-learn -u user1 --spam /home/user2/Maildir/.Spam/cur/ When the command runs, it learns the spam into /root/.spamassassin instead of /home/user1/.spamassassin