-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 (repost after my unsubscribe by server) Hi, I'm trying to get a program executed or do something when certain message is logged. I'm trying the following in syslog-ng: filter f_router_got_ip { host("router") and match("Received valid IP address from server"); }; destination router2 { file("/var/log/router2"); }; log { source(ext); filter(f_router_got_ip); destination(router2); }; This does work, I get the expected entry in /var/log/router2. However, if I try this, per the documentation: destination routerip { program("/usr/local/syslog-askandlogrouterip"); }; log { source(ext); filter(f_router_got_ip); destination(routerip); }; The destination program (a script) never runs. According to the documentation, the program should be loaded only once right at the start: program() This driver executes the specified program with the specified arguments and sends messages to the standard input (stdin) of the child. The program() driver has a single required parameter, specifying a program name to start. The program is executed with the help of the current shell, so the command may include both file patterns and I/O redirection, they will be processed. Declaration: program(commandtorun); Note The program is executed once at startup, and kept running until - -- Cheers, Carlos R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHoKGUtTMYHG2NR9URAr4OAJ9WbNn2fgvPNil5rt4XnuPS8OS5xwCdEJBU tjaXr3SVAQPupE0mtRP5Mu8= =sSSq -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org