[Freeswitch-users] How to run a JS script periodically

Seven Du dujinfang at gmail.com
Thu Dec 3 05:28:57 PST 2009

Not sure about js, but in lua, you can use luarun to run a
long-running script like

do sth.
sleep 5min

and also it can be set to start with freeswitch in lua.conf.xml

I guess you can also use jsrun to run js.

And, if you run every 5 min, why not use crontab?

fs_cli -x "jsrun xx.js"

2009/12/3 Oscav <oscav at hotmail.fr>:
> Hi,
> Someone knows how to run periodically a JS script ?? The purpose is to write
> to a db some global informations (Global Variables) about FS like every 5
> minutes.
> Thanks.
> --
> View this message in context: http://old.nabble.com/How-to-run-a-JS-script-periodically-tp26625147p26625147.html
> Sent from the Freeswitch-users mailing list archive at Nabble.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

More information about the FreeSWITCH-users mailing list