Hello, I'm trying to use the destination program() to forward all dhcp-related messages to a php program. The php program runs fine when I start it on the command line. My configuration in syslog-ng.conf seems to be right because when I use the "/bin/cat/" destination all dhcp messages are written to /tmp/cat.log. filter f_dhcp { facility(daemon) and match("dhcpd");}; #destination dhcpd { program("/bin/cat > /tmp/cat.log");}; destination dhcpd { program("/tmp/dhcp2.php");}; log { source(src); filter(f_dhcp); destination(dhcpd);}; /tmp/dhcp2.php: #! /usr/bin/php <?php $std=fopen("php://stdin","r"); $line = fgets($std,1024); $file=fopen("/tmp/dhcp.log","w+"); fwrite($file,$line); fclose($file); fclose($std); Can anyone give me a hint what I'm doing wrong? Thanks in advance, Stefan -- ***************************************** in-put GbR - Das Linux-Systemhaus Stefan-Michael Günther Moltkestraße 49 D-76133 Karlsruhe Tel./Fax : +49 (0)721 / 83044 - 98/93 http://www.in-put.de ***************************************** -- GMX im TV ... Die Gedanken sind frei ... Schon gesehen? Jetzt Spot online ansehen: http://www.gmx.net/de/go/tv-spot