[syslog-ng]program() destination

John_Delisle@ceridian.ca John_Delisle@ceridian.ca
Thu, 8 Mar 2001 09:14:16 -0600


Would you be able to provide an example of how one could use this to send
mail?

John Delisle
Corporate Technology
Ceridian Canada Ltd
204-975-5909


                                                                                                                            
                    "amover@libero.it"<amo                                                                                  
                    ver                           To:     syslog-ng@lists.balabit.hu                                        
                    Sent by:                      cc:                                                                       
                    syslog-ng-admin@lists.        Subject:     [syslog-ng]program() destination                             
                    balabit.hu                                                                                              
                                                                                                                            
                                                                                                                            
                    2001/03/08 02:18 AM                                                                                     
                    Please respond to                                                                                       
                    syslog-ng                                                                                               
                                                                                                                            
                                                                                                                            




(I'm sending it again cause I'm not sure the first send was successful
so sorry if it's a duplicate)

About launching a program, specifically a perl script to do other jobs
when some filters are matched the right code snippet is :

#!/usr/bin/perl

$fh = select (FOO);
$| = 1;
select ($fh);
open FOO, ">>/foo.log" or die $!;
while ( <STDIN> ) {
           print FOO $_;
}
close FOO;


you need the first to line to disable buffering...(that's why you
cannot say any lines in the file)

Hope this could help the syslog-ng people :)


Amodiovalerio Verde
Computer freak and consultant
amover@libero.it


_______________________________________________
syslog-ng maillist  -  syslog-ng@lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng