18 Aug
2003
18 Aug
'03
11:20 p.m.
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? Thx, Florian