[erlang-questions] repeat function every hour

Yurii Rashkovskii <>
Fri Apr 30 01:38:36 CEST 2010


From erl -man timer :

       apply_interval(Time,  Module,  Function,  Arguments)  ->  {ok,  TRef} |
       {error, Reason}

              Types  Time = integer() in milliseconds
                     Module = Function = atom()
                     Arguments = [term()]

              Evaluates  apply(Module,  Function,  Arguments)  repeatedly   at
              intervals of Time. Returns {ok, TRef}, or {error, Reason}.

On 2010-04-29, at 3:56 PM, Wes James wrote:

> I see that there is a timer module.  Is there something where I can
> start an erl program and it will run a certain function at some given
> time on a given interval - kind of like cron?
> 
> thx,
> 
> -wes
> 
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
> 



More information about the erlang-questions mailing list