[Freeswitch-users] stop a running lua script from luarun

Muhammad Naseer Bhatti nbhatti at gmail.com
Wed Dec 26 22:12:28 MSK 2012


No, I am running this loop myself. But I found other way to terminate the script, like look for a condition  in each iteration of the loop and if condition is true terminate the loop. But the question remains the same, if there is a way to figure out which scripts are running  to stop them if possible. Since all process are spawn by freeswitch top -H is not a handy solution.

Thanks,
--
Muhammad Naseer Bhatti



On Dec 26, 2012, at 8:14 PM, Michael Collins <msc at freeswitch.org> wrote:

> Have you been able to determine why it's stuck in an infinite loop? That would be a better long-term solution. In the meantime I think you can do top -H to see individual threads but I don't know how easy/difficult it is to pick out which one is running Lua.
> -MC
> 
> On Sun, Dec 23, 2012 at 2:21 AM, Muhammad Naseer Bhatti <nbhatti at gmail.com> wrote:
> 
> Looks like simple one, but I can't figure it out if there a way to stop a lua script invoked via luarun which is stuck in an infinite loop and won't terminate itself? Of if we can come up with a way to monitor the thread and stop it?
> 
> Thanks,
> --
> Muhammad Naseer Bhatti
> 
> 
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 
> 
> 
> 
> -- 
> Michael S Collins
> Twitter: @mercutioviz
> http://www.FreeSWITCH.org
> http://www.ClueCon.com
> http://www.OSTAG.org
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121226/9608d37c/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list