stdout

Tom Anderson tanderso at oac-design.com
Tue Sep 23 21:41:19 CEST 2003


Hi all,

I'm writing a Perl script to proxy my train-on-error requests via email,
and I've run into a slight wall.  Everything is working correctly,
except I can't capture the output from my "bogofilter -Sn (or -Ns)"
system calls.  I've tried all kinds of piping and redirecting,
backticks, exec, etc., and bogofilter continues to send it's -v output
to the terminal (when testing on the terminal).  Is it bypassing
stdout?  Is there a way to capture -l output as well?  All I want to do
is return some sort of status via email besides that it exited
correctly.

Also, can a string be passed into bogofilter instead of a file?  I tried
piping echo, but that caused "extra info" errors.  Creating a temp file
to give bogofilter seems to be an unnecessary extra step.

Tom

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.bogofilter.org/pipermail/bogofilter/attachments/20030923/6b83a8bb/attachment.sig>


More information about the Bogofilter mailing list