Re: !Postprocess and e-mailed summary report

[email protected] (Paul Jarc)
Newsgroups gmane.comp.djb.syslog
Organization What did you have in mind? A short, blunt, human pyramid?
Message-ID <[email protected]>
"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
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.