Run a method every 2 hours or every day at 15:00

From Cuis CookBook
Jump to navigation Jump to search

Problem. I want to call a method every fixed amount of time. Say every 2 hours, or every Monday, or every time it is 14:00. How do I do it?

Solution. There a specific package to solve this problem: CronDaemon. See the GitHub readme for a fast introduction on how to use it.