<p dir="ltr">You could just tail the log file and grab what you need...</p>
<div class="gmail_quote">On Jan 9, 2015 3:56 PM, "Aqs Younas" <<a href="mailto:aqsyounas@gmail.com">aqsyounas@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi, <br><br></div>How can i launch a script when there are error logs in freeswitch log file. Actually i am using mod_shout as MOH with mod_local_stream, when someone enters a url of stream that is not responding i see logs all these.<br><br>2015-01-09 19:38:39.338003 [ERR] mod_local_stream.c:214 Can't open shout://<a href="http://174.37.194.139:8316" target="_blank">174.37.194.139:8316</a><br>2015-01-09 19:38:41.337988 [ERR] switch_core_file.c:149 Invalid file format [shout] for [<a href="http://174.37.194.139:8316" target="_blank">174.37.194.139:8316</a>]!<br>2015-01-09 19:38:42.337988 [ERR] mod_local_stream.c:214 Can't open shout://<a href="http://s9.voscast.com:7584" target="_blank">s9.voscast.com:7584</a><br>2015-01-09 19:38:42.337988 [ERR] switch_core_file.c:149 Invalid file format [shout] for [<a href="http://s9.voscast.com:7584" target="_blank">s9.voscast.com:7584</a>]!<br><br><br></div>I want to run an external script to remove that file or urls when there are errors logs in freeswitch.<br><br></div>But i don't know how to trigger that script on errors in freeswitch log.<br><br></div>Any help would be much appreciated.<br><br></div>Thanks.<br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div>