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

Oscav oscav at hotmail.fr
Thu Dec 3 15:33:57 PST 2009


fs_cli looks like a good idea. I will try that. Many thanks Rob


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.
>>
>> 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
>>
> 
> _______________________________________________
> 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
> 
> 

-- 
View this message in context: http://old.nabble.com/How-to-run-a-JS-script-periodically-tp26625147p26635167.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.





More information about the FreeSWITCH-users mailing list