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 9:50 pm, "Charles Cazabon" said:
> Robin Bowes <[email protected]> wrote:
>> On Thu, October 9, 2003 8:47 pm, "Paul Jarc" said:
>> > "Robin Bowes" <[email protected]> wrote:
>> >> tee /dev/stdin
>> >
>> > tee: warning: cannot open /dev/stdin: Text file busy
>>
>> I guess you're telling me this won't work! I tried it and it doesn't.
>> Why?
>
> I don't know what you're trying to do; tee copies stdin to stdout while
> also
> recording it to the file specified as an argument.  You can't write to
> /dev/stdin meaningfully.

Doh! Finger trouble. I meant, of course, /dev/stdout. e.g.:

"!tee /dev/stdout |messagewallstats |qmail-inject postmaster"

i.e. pipe stdin to messagewallstats (for the emailed summary report) and
also write it to stdout so the logs are still rotated.

Not sure that it will work, though...

R.
-- 
Robin Bowes | http://robinbowes.com
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.