RE: !Postprocess and e-mailed summary report
"Robin Bowes" <[email protected]>
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
John Peacock <mailto:[email protected]> wrote on 09 October 2003 18:49: > 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. How about: !{ tee /dev/stdin | messagewallstats | qmail-inject postmaster } R.