For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > May 2005 > Running a task every month









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Running a task every month
Beren

2005-05-30, 3:59 pm

Hello,
I need to run a routine every first day of the month, even when there is no
page request.
What would be the best way of achieving this ? A cache variable ?

Thanks,

Beren


Karl Seguin

2005-05-30, 3:59 pm

A service or scheduled task would be the best way.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Beren" <beren@angband.me> wrote in message
news:cBFme.105374$SX6.6244446@phobos.telenet-ops.be...
> Hello,
> I need to run a routine every first day of the month, even when there is
> no page request.
> What would be the best way of achieving this ? A cache variable ?
>
> Thanks,
>
> Beren
>



Eliyahu Goldin

2005-05-30, 3:59 pm

Beren,

Setup a Windows Scheduled Task that will call a browser with an url to the
page that runs the routine.

Eliyahu

"Beren" <beren@angband.me> wrote in message
news:cBFme.105374$SX6.6244446@phobos.telenet-ops.be...
> Hello,
> I need to run a routine every first day of the month, even when there is

no
> page request.
> What would be the best way of achieving this ? A cache variable ?
>
> Thanks,
>
> Beren
>
>



Beren

2005-05-30, 3:59 pm

Thank for the replies, but this means I can't start the routine from the
server, making the whole system dependent of a client request. Isn't there a
way to let the server govern this ?

Thanks,

Beren

"Eliyahu Goldin" <removemeegoldin@monarchmed.com> wrote in message
news:u1s21mSZFHA.2796@TK2MSFTNGP09.phx.gbl...
> Beren,
>
> Setup a Windows Scheduled Task that will call a browser with an url to the
> page that runs the routine.
>
> Eliyahu
>
> "Beren" <beren@angband.me> wrote in message
> news:cBFme.105374$SX6.6244446@phobos.telenet-ops.be...
> no
>
>



Eliyahu Goldin

2005-05-30, 3:59 pm

Why can't you? Usually servers have browsers installed on them. Just make an
url to localhost.

Eliyahu

"Beren" <beren@angband.me> wrote in message
news:4kGme.105446$x92.6204508@phobos.telenet-ops.be...
> Thank for the replies, but this means I can't start the routine from the
> server, making the whole system dependent of a client request. Isn't there

a
> way to let the server govern this ?
>
> Thanks,
>
> Beren
>
> "Eliyahu Goldin" <removemeegoldin@monarchmed.com> wrote in message
> news:u1s21mSZFHA.2796@TK2MSFTNGP09.phx.gbl...
the[color=darkred]
is[color=darkred]
>
>



Yunus Emre ALPÖZEN [MCSD.NET]

2005-05-30, 3:59 pm

U can use a timer. But u should use System.Threading.Timer which uses CLR
thread and doesn't requires a client request.. But be careful that u do
samething more than one times.... U should develop a mechanism to mark that
u successfully did it for this month...

--

Thanks,
Yunus Emre ALPÖZEN
BSc, MCSD.NET

"Beren" <beren@angband.me> wrote in message
news:4kGme.105446$x92.6204508@phobos.telenet-ops.be...
> Thank for the replies, but this means I can't start the routine from the
> server, making the whole system dependent of a client request. Isn't there
> a way to let the server govern this ?
>
> Thanks,
>
> Beren
>
> "Eliyahu Goldin" <removemeegoldin@monarchmed.com> wrote in message
> news:u1s21mSZFHA.2796@TK2MSFTNGP09.phx.gbl...
>
>



Beren

2005-05-30, 8:58 pm

Thanks for your help everyone, I've got a good idea of what I can do now.

Beren

"Yunus Emre ALPÖZEN [MCSD.NET]" <yemre@msakademik.net> wrote in message
news:uLlBHHUZFHA.4008@tk2msftngp13.phx.gbl...
>U can use a timer. But u should use System.Threading.Timer which uses CLR
>thread and doesn't requires a client request.. But be careful that u do
>samething more than one times.... U should develop a mechanism to mark that
>u successfully did it for this month...
>
> --
>
> Thanks,
> Yunus Emre ALPÖZEN
> BSc, MCSD.NET
>
> "Beren" <beren@angband.me> wrote in message
> news:4kGme.105446$x92.6204508@phobos.telenet-ops.be...
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com