On Fri, 20 Jun 2014, masoom alam wrote:
We are using CentOS 6.5. There is no problem in running the script independently.
Ok, in that case it could be a SELinux issue. As a test, could you try disabling SELinux and see if it works? Another way to test this would be to see if it works if you run rsyslog manually.
If it does, you will need to set the SELinux permissions to allow rsyslog started as a daemon to run your script.
David Lang
rsyslog.conf and test.sh are attached . problem is how to call any custom code say a python or ruby script from rsyslog. we tried it on both version 8.2.1 and 7.6.3 ,but no success Please help
rsyslog.conf
Description: Binary data
test.sh
Description: Bourne shell script
_______________________________________________ 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.

