-----Original Message----- From: Lists [mailto:[email protected]] Sent: vrijdag 15 mei 2009 0:38 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. Not sure what Unix-type OS you're on, but maybe sudo is the wrong way. On FreeBSD, I would say: su -l postfix -c "spamassassin -p prefs.conf -t < MESSAGE.MAI > text.txt" The "-l" switch causes the ENV of the postfix user to be used as well (as if you did a full login). - Mark
