Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CRON Question
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Miscellaneous
Thread ID:
01518445
Message ID:
01518462
Views:
57
>>>I need to implement a schedule-based process using a CRON. Anyone know of a function or any code where I can pass in a CRON and get back a bool if it's time to run?
>>
>>I thought CRON was a Unix daemon for task scheduling. What do you mean by 'pass in a CRON' ?
>
>It is a unix thing but for some reason we're using it here in our C# apps. So I have to use it.
>
>I want to pass in a CRON expression, ie "* * * * * " or something like it, and get back a bool if the expression evaluates to DateTime.Now or past DateTime.Now.

Take a look at Quartz.NET - http://quartznet.sourceforge.net/ - it's an open-source library that makes it really easy to schedule tasks to be run. The format you're using looks very similar to what Quartz.NET uses so if you're lucky they're compatible. I've used this library for a few projects and it's worked really nicely.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform