Andrews Carl 448 wrote:
I think you want
Sudo -u postfix spamassassin -D -p
/etc/MailScanner/spam.assassin.prefs.con -t <MESSAGE.MAI &> text.txt

Have a look at Example 3.6 -
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html
-----Original Message-----
From: Lists [mailto:li...@rheel.co.nz] Sent: Thursday, May 14, 2009 5:39 PM
To: SpamAssassin
Subject: saving output of test to a text file

Hi,

I'm trying to run sudo -u postfix spamassassin -D -p
/etc/MailScanner/spam.assassin.prefs.conf -t < MESSAGE.MAI and I would
like the full output to be saved to a text file when I do:
sudo -u postfix spamassassin -p
/etc/MailScanner/spam.assassin.prefs.conf -t < MESSAGE.MAI > text.txt it
only puts the last part (i.e. the message and scores) into the text
file.

I really need to see all the debug output as I am trying to see which
user is running when trying to access FuzzyOCR.

Thanks
Kate
Do you know how I can tell which user is running?
i.e. I have a line
[8357] dbg: config: mkdir /root/.spamassassin failed: mkdir /root/.spamassassin: Permission denied at /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin.pm line 1577

The permissions on the folder are drw-rw-rw- root:root

Regards
Kate

Reply via email to