[erlang-questions] gen_cron question
Sun Mar 2 18:54:15 CET 2008
I need to purge 10 mnesia tables on day/hourly interval. I am looking at
http://code.google.com/p/gencron/ to accomplish this. Documentation says
gen_cron pretty much like gen_server. I am not an expert in gen_server. I
want to create 1 process for each table to perform purging.
Do I create 10 process intially and have them sleep on the interval or
gen_cron starts these 10 process on interval?
Any sample gen_cron example out there?
Gen_cron seems to consider a task as a module. What if I want to run two
different modules, do I start two different gen_cron with two different
That which we persist in doing becomes easier for us to do; not that the
nature of the thing itself is changed, but that our power to do is
-Ralph Waldo Emerson
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions