cron in asp.net

Discussion in 'ASP .Net' started by Hollow Quincy, Feb 17, 2011.

  1. 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
     
    Hollow Quincy, Feb 17, 2011
    #1
    1. Advertising

  2. Hollow Quincy

    Brian Cryer Guest

    "Hollow Quincy" <> wrote in message
    news:...
    > 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
     
    Brian Cryer, Feb 17, 2011
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrew Banks

    Equiv of a CRON job?

    Andrew Banks, Apr 8, 2004, in forum: ASP .Net
    Replies:
    8
    Views:
    15,231
    PeteJ
    Jul 30, 2012
  2. Mr. T

    Timer vs. Cron Jobs

    Mr. T, Jun 9, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    725
    Hans Kesting
    Jun 9, 2004
  3. Horst Walter

    Java Task / Cron environment

    Horst Walter, Mar 2, 2004, in forum: Java
    Replies:
    7
    Views:
    3,452
    Horst Walter
    Mar 4, 2004
  4. Scheduling ASP Without Cron

    , Mar 8, 2005, in forum: ASP General
    Replies:
    0
    Views:
    113
  5. Daniel Berger

    net/ftp works manually, fails via cron

    Daniel Berger, Sep 23, 2005, in forum: Ruby
    Replies:
    3
    Views:
    114
    Daniel Berger
    Sep 23, 2005
Loading...

Share This Page