Re: [EXIM] logging data from pipes

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Marc Haber
CC: exim-users
Sujet: Re: [EXIM] logging data from pipes
On Wed, 29 Jul 1998, Marc Haber wrote:

> I am using a virus scanner program that is invoked by a pipe, scans
> the mail and re-invokes exim to do the delivery. That program does its
> own logging and I would love to have an option to make exim do entries
> in its logs. Preferably, these could be invoked with calls to exim
> with command like parameters, a little bit like logger.
>
> That way, I could write dangerous events like a found virus to the
> exim log where they are much easier to spot.


If you can arrange for your virus scanner to have permission to write to
the Exim log file, and to do so with a single call to write() each time,
on a file opened with O_APPEND, then the data will correctly interleave
with what Exim adds to the logs, because that is exactly how it works
itself.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.



--
*** Exim information can be found at http://www.exim.org/ ***