[syslog-ng]Problem with program() destination [SOLVED]
"Stefan Günther"
syslog-ng@lists.balabit.hu
Tue, 25 Jan 2005 17:46:33 +0100 (MET)
> > $file=fopen("/tmp/dhcp.log","w+");
>
> Try changing "w+" to "a".
>
> Mode "w+" means that the filepointer is set to the BEGINNING of the file
> so every separate flow coming from stdin is overwriting the file again
> and again. Mode "a" is append mode (filepointer at the end, appending to
> the file).
>
Yop, Thanks, that's it!!
Although w+ should have worked, too. Even if the messages were written to
the beginning of the file. Who cares, it works!
Stefan
--
GMX im TV ... Die Gedanken sind frei ... Schon gesehen?
Jetzt Spot online ansehen: http://www.gmx.net/de/go/tv-spot