[syslog-ng]Problem with program() destination [SOLVED]

Tamas MEZEI syslog-ng@lists.balabit.hu
Tue, 25 Jan 2005 18:02:39 +0100


> Although w+ should have worked, too. Even if the messages were written to

No, you cannot write a file backwards. "w+" (file pointer at the start) 
means that everytime you write, the file is overwritten). It is okay if 
you want the most recent entry from the log. Unfortunately somehow it 
alway was a left "\n", though, so you got an empty file.

Tamas