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