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 11:42 pm, "Paul Jarc" said: > "Robin Bowes" <[email protected]> wrote: >> On Thu, October 9, 2003 10:39 pm, "Paul Jarc" said: >>> "!messagewallstats | qmail-inject postmaster && exec cat previous" > ... >> Why do you: >> >> a. use && (to only cat the previous file if the previous command >> executed >> successfully?) > > Yes. If the !processor fails, multilog will try it again. If we > ignore errors from qmail-inject, the log will be rotated, but the > email will be lost. > >> b. exec "cat previous" ? > > Just because there's no need to keep the shell around. Paul, Thanks for the clarification. This sort of thing is precisely why I persisted with this issue. I now have: 1. messagewallstats patched to behave as I require 2. a relatively simple !processor run script which mails a summary report yet keeps the original log files (the redirection that you proposed for John's solution got a little hairy!) 3. a couple of pieces of knowledge around scripting. Thanks again for your help. R. --- Robin Bowes