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: > Doh! Finger trouble. I meant, of course, /dev/stdout. e.g.: > > "!tee /dev/stdout |messagewallstats |qmail-inject postmaster" ... > Not sure that it will work, though... It won't. /dev/stdout means something different to each process; it refers to the process's own stdout, which in this case is the pipe that messagewallstats is reading from. tee will write its input to the pipe twice (with unknown interlacing due to possible buffering), if it even works at all. messagewallstats' output will be emailed. Nothing will be written to the rotated log file. > i.e. pipe stdin to messagewallstats (for the emailed summary report) and > also write it to stdout so the logs are still rotated. So you want the rotated log to contain exactly what was in the "current" file, without any processing applied to it, and you also want the output of messagewallstats to be emailed? Then this will work: "!messagewallstats | qmail-inject postmaster && exec cat previous" paul