On Fri, 15 May 2009, Lists wrote:

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.

Try adding "2>&1" onto the end of that command line.

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 jhar...@impsec.org    FALaholic #11174     pgpk -a jhar...@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  Usually Microsoft doesn't develop products, we buy products.
                          -- Arno Edelmann, Microsoft product manager
-----------------------------------------------------------------------
 7 days until the 5th anniversary of SpaceshipOne winning the X-prize

Reply via email to