[syslog-ng]Sending mail to root?

Florian Lindner syslog-ng@lists.balabit.hu
Tue, 19 Aug 2003 00:29:51 +0200


Am Dienstag, 19. August 2003 00:20 schrieb Florian Lindner:
> Am Dienstag, 19. August 2003 00:02 schrieb Amodiovalerio Verde:
> > You simply cannot use a destination like that one.
> >
> > Remember that syslog-ng never stop feeding destinations, so there is
> > never an EOF...
> >
> > What you can do is a script or a little program that read it's stdin and
> > without waiting for an EOF, do something.
> >
> > I use some C program I've written to read stdin using a fgets() that
> > return after # bytes or after an EOL.
> >
> > You have to use something like that using language you like.
> >
> > But never expect syslog-ng to close your destination stdin, cause it's
> > not its behaviour.
>
> Could you send this program to me? Wouldn't it be better to return after a
> linebreak?

Sorry, didn't see you EOL.
It would be nice if you would send me the source of this program?
Thanks,
Florian