> -----Original Message----- > From: rsyslog-boun...@lists.adiscon.com [mailto:rsyslog- > boun...@lists.adiscon.com] On Behalf Of Mark Olliver > Sent: Thursday, February 10, 2011 12:38 PM > To: rsyslog-users > Subject: Re: [rsyslog] OMPROG Doccumentation > > Hi, > > I have been playing more with OMPROG and have it working nearly the > way i want now in that it it now passes the correct message to my > external script by the pipe however, OMPROG seems to only flush the > data out to the pipe when rsyslog is shutdown, until that point it > just keeps the pipe/script open.
You mean no data is sent until shutdown? I'll try to have a look this afternoon... Rainer Is there a way to force OMPROG to > flush each line to the pipe and then close the pipe or is there a > better way to do this? > > So far i have: > $template smsBody,"%programname% 44788900000 %hostname% %rawmsg%" > $ModLoad omprog > $actionomprogbinary /usr/bin/alert1 > if $programname == 'FILLER' then :omprog:;smsBody > & ~ > > Thanks > > Mark > _______________________________________________ > rsyslog mailing list > http://lists.adiscon.net/mailman/listinfo/rsyslog > http://www.rsyslog.com _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com