PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

cron in asp.net

 
 
Hollow Quincy
Guest
Posts: n/a
 
      17th Feb 2011
Hi,

I would like to do some tasks every 3 minutes in asp.net application.
In my hosting I can't run 'exe' program, can't run sql server job and
can't use windows scheduler.
How can I execute tasks every 3 minutes in asp.net application ?
(I was wondering if I can do static Timer and run it every 3
minutes... is it good idea ? )

Thanks for help
 
Reply With Quote
 
 
 
 
Brian Cryer
Guest
Posts: n/a
 
      17th Feb 2011
"Hollow Quincy" <(E-Mail Removed)> wrote in message
news:740026a2-93f5-44a4-ad5b-(E-Mail Removed)...
> Hi,
>
> I would like to do some tasks every 3 minutes in asp.net application.
> In my hosting I can't run 'exe' program, can't run sql server job and
> can't use windows scheduler.
> How can I execute tasks every 3 minutes in asp.net application ?
> (I was wondering if I can do static Timer and run it every 3
> minutes... is it good idea ? )
>
> Thanks for help


Yes. There a number of ways, but the simplest is probably to start a new
thread (at application start-up), then leave it to loop doing what ever it
needs to do with a Threading.Thread.Sleep(180000) at the end or start of the
loop.
--
Brian Cryer
http://www.cryer.co.uk/brian



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cron for windows? Mike Echo Freeware 11 9th Jun 2006 11:17 AM
something like cron on Windows? Doug Windows XP Help 2 26th Jul 2004 09:58 PM
Equiv of a CRON job? Andrew Banks Microsoft ASP .NET 6 8th Apr 2004 10:04 PM
Cron Zahira Ammarguellat Windows XP Basics 1 15th Dec 2003 09:39 PM
Cron facility Zahira Ammarguellat Windows XP Work Remotely 1 5th Dec 2003 06:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:44 AM.