Output parameter used to capture whatever your binary prints to stdout/stderr.
>Also I noticed that whenever binary writes to some file during its execution, nothing is written till rsyslog is stopped. Is this behaviour intended ? If you write small amounts of data, it will be in the buffer for some time. Use fsync if you want to make sure your writes are persisted. On Mon, Mar 28, 2016 at 7:51 AM, Hervé Werner <[email protected]> wrote: > Hello > > I discovered the existence of a non-documented output parameter in omprog. > However I did not manage to get it work, nothing is ever written to the > file I specifiy : > > Here is my configuration : > module(load="omprog") > template(name="mymsg" type="string" string="%msg%") > user.notice action(type="omprog" output="/tmp/myoutput" > binary="/tmp/omprog.sh" template="mymsg") > > Is there something wrong ? > > > Also I noticed that whenever binary writes to some file during its > execution, nothing is written till rsyslog is stopped. Is this behaviour > intended ? > > Thanks in advance > > dud > > _______________________________________________ > rsyslog mailing list > http://lists.adiscon.net/mailman/listinfo/rsyslog > http://www.rsyslog.com/professional-services/ > What's up with rsyslog? Follow https://twitter.com/rgerhards > NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad > of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you > DON'T LIKE THAT. > _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

