Re: !Postprocess and e-mailed summary report
John Peacock <[email protected]>
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Organization | Rowman & Littlefield Publishing Group |
| Message-ID | <[email protected]> |
Robin Bowes wrote: > However, I'd like to use messagewallstats from a shell like this: > > # cat /var/log/mwall/\@* | messagewallstats > > John's patch won't allow this, You're right, but it is also not that important to do this often, since the summaries are already being mailed to you. If you really need to do it manually, too, the inconvenience of a slightly longer commandline is not that significant. > unless you use something like: > > # cat /var/log/mwall/\@* | messagewallstats /dev/stdin > > ...which is something I want to avoid as it seems a little inelegant. There is a fine line between elegant programming and ignoring a perfectly good solution because you are overthinking the problem. I just checked and the second form you noted works just fine and is somewhat shorter than what I have been doing: cat \@* | messagewallstats - 2>/dev/null but either way, it works fine. John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748