![]() |
| ASP.NET equivalent to CFSCHEDULE? |
|
DatabaseDude
|
Is there an ASP.NET equivalent for CFSCHEDULE in ColdFusion?
I was thinking of a table which contains emails waiting to be sent (fields for receiver address, subject, body, etc), and a function that would check the table every 10-15 minutes, looping thru records and transmitting unsent emails. I've done this in CF and could easily do that again (as long as CFSCHEDULE is enabled, which I am not certain of) ... since I'm trying to port my thought processes all over to the .NET world, I wanted to check that avenue first. Thanks in advance, Bryant |
||||||||||||
|
|
|||||||||||||
|
dan
HostMySite Tech
|
I just had a client ask me about the same thing not too long ago this morning.
We don't really have a service that runs like the cf scheudle tasks run. But we have setup asp scheudle tasks using a servers CFSchedule task application. Linux servers offer cron jobs, but of course no asp So we can setup asp scripts to run through a cf scheudle task if needed. |
||||||||||||
|
|
|||||||||||||
|
DatabaseDude
|
So the URL argument of CFSCHEDULE can be .asp or .aspx, rather than .cfm? As long as it is a valid page?
Bryant |
||||||||||||
|
|
|||||||||||||
|
bobum
Elvis Fanatic
![]()
|
The ASP.NET equivalent would probalby be setting up a scheduled task on the server to hit your page every n minutes. Or, if the host won't allow you to set up a shceduled task on their environment, have your home PC set up to run the scheduled task and hit that page. Then just leave your PC on...I'm sure you have servers at your house that run 24/7
|
||||||||||||
|
|
|||||||||||||
|
DatabaseDude
|
My fridge, alarm clock, and fish tanks are the only 24/7 electronics here Bryant |
||||||||||||||
|
|
|||||||||||||||
|
bobum
Elvis Fanatic
![]()
|
LOL
I leave all my electronics on 24/7 - seems to cause less problems in the long run because you don't have the constant heating up and cooling down every day. They get to operating temperature and then they stay there. We usually turn the boxes off only when we go away for a weekend or vacation etc. |
||||||||||||
|
|
|||||||||||||
|
Josh
Forum Regular
|
Correct. ASP.NET has no scheduled task/cron job capabilities... not yet anyway. The best you could do is make a scheduled task on your local machine that ran however often the job is supposed to run. you can do so like this...
Then just schedule that in your Windows Task Scheduler (Scheduled Tasks: Start > Programs > Accessories > System Tools > Scheduled Tasks). You'll be able to tell if its running or not then just by the last reported status code. Simple enough |
||||||||||||||
|
|
|||||||||||||||
|
DatabaseDude
|
Creating a scheduled task on my local machine isn't an option. This is something which shouldn't be interrupted ... if my office PC is turned off for any reason such as a power outage, then the process would not run. It has to run on the server for reliability, so looks like Dan's suggestion would be my best bet.
Thanks, Bryant |
||||||||||||
|
|
|||||||||||||
|
Josh
Forum Regular
|
Absolutely
|
||||||||||||
|
|
|||||||||||||
|
jamie
HostMySite Sales Rep
![]()
|
Is your refrigerator running? Yes? Then you should go catch it! Sorry couldn't resist. Back to 'serious' mode - Dan's suggestion was the best; simply use the scheduled task abilities of CF for the asp/.net page and it will work like a charm. Using Windows Scheduled Tasks would also work, however we don't allow that on our shared webservers. |
|||||||||||||
|
|
||||||||||||||
|
DatabaseDude
|
Would you believe that I once pulled that joke via email, when I worked at a college in NJ? Apparently the victim made students wait in line while she went across the hallway to check whether the breakroom refrigerator was running. You would have thought after the incident with the Y2K compatible mousepads they wouldn't have been so trusting of me. Dunno why they didn't like me there Bryant |
||||||||||||||
|
|
|||||||||||||||
|
bobum
Elvis Fanatic
![]()
|
ACK! New Jersey!!
The armpit of America... I can say that...I was born there...graduated highschool there...hated ever second of every day of every year I was there... It's the most GOD AWFULEST place on God's green earth...And I lived in south Jersey...the rural part of the state...Thank heavens it wasn't North Jersey...ugh...I gotta go puke now...thinking about New Jersey makes me sick... Glad you got out when you did Bryant... |
||||||||||||
|
|
|||||||||||||
| ASP.NET equivalent to CFSCHEDULE? |
|
||
|




