On Tuesday 03 October 2006 15:23, you wrote:
> > Now that you mentioned it - syslog-ng configuration file can be indented
> > and formatted at will
>
> This Chimera could work then:
> egrep -nA1 "^dest.*{" /etc/syslog-ng/syslog-ng.conf | while read d n c; do
> case "$c" in *udp*|*tcp*) echo $c;;
> *) case "$d" in [0-9]-) case "$n" in
> udp*|tcp*) echo $n;;
> esac;;
> esac;;
> esac
> done
Yes, it works perfectly well! For me it returns
---
{ udp("my.log.host"); };
---
Thank you very much!
Best regards,
Janne Pikkarainen
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rkhunter-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rkhunter-users