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:
01518470
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.
>
>If it has millisecond resolution (as stated) then it won't be compatible with the UNIX CRON format....
>But I still don't really understand what Kevin needs to do when he's 'de-coded' the cron table info....

I have a scheduler type application that needs to run some processes at known intervals. So the CRON would be used to specify when the processes need to execute.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform