Re: !Postprocess and e-mailed summary report

John Peacock <[email protected]>
Newsgroups gmane.comp.djb.syslog
Organization Rowman & Littlefield Publishing Group
Message-ID <[email protected]>
Robin Bowes wrote:

> I've patched messagewallstats so it reads from STDIN, and I'd like to send the output to qmail-inject. So, this will process the
> current log file and mail the output of the program to postmaster:
> 
> !{ messagewallstats | qmail-inject postmaster }
> 
> Am I correct in thinking that this will mean that the current log file will be not be written to an old file? How can I achieve
> this?
> 

In that case, the current log file will be lost and the summary report will be 
saved instead.  That't why I do the complicated jig that you see in my run file. 
  I get the best of both worlds: a summary e-mailed to me and the complete log 
file rolled as well.

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.