Re: !Postprocess and e-mailed summary report

"Robin Bowes" <[email protected]>
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
On Thu, October 9, 2003 8:45 pm, "Paul Jarc" said:
> "Robin Bowes" <[email protected]> wrote:
>>> Paul Jarc wrote:
>>>> "!{ messagewallstats - 2>&1 1>&3 | qmail-inject postmaster } 3>&1"
> ...
>> I do not want to have the program messagewallstats writing STDIN to
>> STDERR, which is how John's solution works.
>
> I don't think you've understood what the above does.  John says he
> patched messagewallstats so that it reads its input from stdin, writes
> its normal output to stdout, and writes a summary repotr to stderr.
> The pipe and redirections above send messagewallstats' stdout to the
> rotated log, and the stderr output to email.

I understand this. I've patched messagewallstats differently so it doesn't
re-write stdin to stderr.

>> !{ messagewallstats | qmail-inject postmaster }
>
> That will do what you want it to do, assuming you quote it properly
> for the shell.

Meaning? This instead:

  "!{ messagewallstats | qmail-inject postmaster }"

> Do you mean that you want the log to also be written to a rotated
> file?  Or that you don't want it to be?

Option A: I'd like to keep the rotated log files, but have a summary
report emailed when they are rotated.

R.
---
Robin Bowes
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.