user1570048
user1570048

Reputation: 880

Running a function every 2-3 days on a specific time

i am wondering what is the best way to do this, what i am thinking of is a Dispatcher that checks for the current time and if it equals to the user specified date time then the function gets called, is there a better way to do this?

Upvotes: 0

Views: 91

Answers (2)

K'shin Gendron
K'shin Gendron

Reputation: 1629

Do you have access to CRON? It should be built into your server and you should have access to it through your control panel. This is exactly what CRON was invented for.

Upvotes: 3

Dean Kuga
Dean Kuga

Reputation: 12131

Yes, no need to reinvent the wheel, use Quartz.NET instead (the library is under 500k)...

Upvotes: 3

Related Questions