[Freeswitch-users] How to run a JS script periodically
Michael Jerris
mike at jerris.com
Thu Dec 3 05:50:19 PST 2009
You could also use the scheduler to run the jsrun command inside FreeSWITCH.
Mike
On Dec 3, 2009, at 8:31 AM, Rob Forman wrote:
> What about cron?
>
> Create a cron entry like:
> */5 * * * * /usr/local/freeswitch/bin/fs_cli -x "jsrun yourscript &app()"
>
> But if you're just dumping global variables, you could easily retrieve them directly from fs_cli without running an app and process the output however you'd like:
>
> /usr/local/freeswitch/bin/fs_cli -x "global_getvar"
>
>
> On Thu, Dec 3, 2009 at 6:21 AM, Oscav <oscav at hotmail.fr> wrote:
>
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091203/70f1c40f/attachment-0002.html
More information about the FreeSWITCH-users
mailing list