Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Equiv of a CRON job?

Reply
Thread Tools

Equiv of a CRON job?

 
 
Andrew Banks
Guest
Posts: n/a
 
      04-08-2004
When I've developed PHP sites before we've had a server facility called a
CRON job to set a certain page to run at pre-defined periods (schedule it)

Is there an equvalent for ASP.NET/IIS? I've got some scripts which I could
do with running daily and wondered the best way to do this?


 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      04-08-2004
You have a couple of alternatives. The closest fit to your problem would be
a Windows Service that can perform a scheduled task. That would require
installing the Service on the host machine, which may or may not be
possible. Another alternative is to include code in your Session_OnStart
Event Handler, which checks the date and time and runs or doesn't run a task
at the beginning of a user's Session.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Andrew Banks" <(E-Mail Removed)> wrote in message
news:KNadc.5427$(E-Mail Removed)...
> When I've developed PHP sites before we've had a server facility called a
> CRON job to set a certain page to run at pre-defined periods (schedule it)
>
> Is there an equvalent for ASP.NET/IIS? I've got some scripts which I could
> do with running daily and wondered the best way to do this?
>
>



 
Reply With Quote
 
 
 
 
Andrew Banks
Guest
Posts: n/a
 
      04-08-2004
First option seems more reliable but I won't have that option as I'm on a
shared server.

Second option is good but not as reliable. If no one visitis the site, no
sessions are started and hence nothing will be run.

Does anyone know any other alternatives?

"Kevin Spencer" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> You have a couple of alternatives. The closest fit to your problem would

be
> a Windows Service that can perform a scheduled task. That would require
> installing the Service on the host machine, which may or may not be
> possible. Another alternative is to include code in your Session_OnStart
> Event Handler, which checks the date and time and runs or doesn't run a

task
> at the beginning of a user's Session.
>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
>
> "Andrew Banks" <(E-Mail Removed)> wrote in message
> news:KNadc.5427$(E-Mail Removed)...
> > When I've developed PHP sites before we've had a server facility called

a
> > CRON job to set a certain page to run at pre-defined periods (schedule

it)
> >
> > Is there an equvalent for ASP.NET/IIS? I've got some scripts which I

could
> > do with running daily and wondered the best way to do this?
> >
> >

>
>



 
Reply With Quote
 
Scott
Guest
Posts: n/a
 
      04-08-2004

You could just run a scheduled task (outside of IIS/ASP); I guess it depends on your scripts.

Scott

"Andrew Banks" <(E-Mail Removed)> wrote in message
news:KNadc.5427$(E-Mail Removed)...
> When I've developed PHP sites before we've had a server facility called a
> CRON job to set a certain page to run at pre-defined periods (schedule it)
>
> Is there an equvalent for ASP.NET/IIS? I've got some scripts which I could
> do with running daily and wondered the best way to do this?
>
>



 
Reply With Quote
 
Bryan Donaldson
Guest
Posts: n/a
 
      04-08-2004
the Windows system equivalent to CRON is "AT"

The AT command schedules commands and programs to run on a computer at
a specified time and date. The Schedule service must be running to use
the AT command.

AT [\\computer] [ [id] [/DELETE] | /DELETE [/YES]]
AT [\\computername] time [/INTERACTIVE]
[ /EVERY:date[,...] | /NEXT:date[,...]] "command"

\\computername Specifies a remote computer. Commands are scheduled on
the
local computer if this parameter is omitted.
id Is an identification number assigned to a scheduled
command.
/delete Cancels a scheduled command. If id is omitted, all the
scheduled commands on the computer are canceled.
/yes Used with cancel all jobs command when no further
confirmation is desired.
time Specifies the time when command is to run.
/interactive Allows the job to interact with the desktop of the user
who is logged on at the time the job runs.
/every:date[,...] Runs the command on each specified day(s) of the week or
month. If date is omitted, the current day of the month
is assumed.
/next:date[,...] Runs the specified command on the next occurrence of the
day (for example, next Thursday). If date is omitted,
the
current day of the month is assumed.
"command" Is the Windows NT command, or batch program to be run.


"Andrew Banks" <(E-Mail Removed)> wrote in message
news:KNadc.5427$(E-Mail Removed)...
> When I've developed PHP sites before we've had a server facility called a
> CRON job to set a certain page to run at pre-defined periods (schedule it)
>
> Is there an equvalent for ASP.NET/IIS? I've got some scripts which I could
> do with running daily and wondered the best way to do this?
>
>



 
Reply With Quote
 
Alex Papadimoulis
Guest
Posts: n/a
 
      04-08-2004
Andrew,

Unless your host will allow you to run a scheduled task (try askin them), it
looks like you're out of luck. If you post the specific task your trying to
do, perhaps we can help you with some work arounds.

Alex Papadimoulis


"Andrew Banks" <(E-Mail Removed)> wrote in message
news:mRbdc.5451$(E-Mail Removed)...
> First option seems more reliable but I won't have that option as I'm on a
> shared server.
>
> Second option is good but not as reliable. If no one visitis the site, no
> sessions are started and hence nothing will be run.
>
> Does anyone know any other alternatives?
>
> "Kevin Spencer" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > You have a couple of alternatives. The closest fit to your problem would

> be
> > a Windows Service that can perform a scheduled task. That would require
> > installing the Service on the host machine, which may or may not be
> > possible. Another alternative is to include code in your Session_OnStart
> > Event Handler, which checks the date and time and runs or doesn't run a

> task
> > at the beginning of a user's Session.
> >
> > --
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > Big things are made up
> > of lots of little things.
> >
> > "Andrew Banks" <(E-Mail Removed)> wrote in message
> > news:KNadc.5427$(E-Mail Removed)...
> > > When I've developed PHP sites before we've had a server facility

called
> a
> > > CRON job to set a certain page to run at pre-defined periods (schedule

> it)
> > >
> > > Is there an equvalent for ASP.NET/IIS? I've got some scripts which I

> could
> > > do with running daily and wondered the best way to do this?
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
John Timney \(Microsoft MVP\)
Guest
Posts: n/a
 
      04-08-2004
Iif you have the ability to create applications - you could try spawning a
thread in application on_start that sits ticking away doing your schedule
check.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP


"Andrew Banks" <(E-Mail Removed)> wrote in message
news:mRbdc.5451$(E-Mail Removed)...
> First option seems more reliable but I won't have that option as I'm on a
> shared server.
>
> Second option is good but not as reliable. If no one visitis the site, no
> sessions are started and hence nothing will be run.
>
> Does anyone know any other alternatives?
>
> "Kevin Spencer" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > You have a couple of alternatives. The closest fit to your problem would

> be
> > a Windows Service that can perform a scheduled task. That would require
> > installing the Service on the host machine, which may or may not be
> > possible. Another alternative is to include code in your Session_OnStart
> > Event Handler, which checks the date and time and runs or doesn't run a

> task
> > at the beginning of a user's Session.
> >
> > --
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > Big things are made up
> > of lots of little things.
> >
> > "Andrew Banks" <(E-Mail Removed)> wrote in message
> > news:KNadc.5427$(E-Mail Removed)...
> > > When I've developed PHP sites before we've had a server facility

called
> a
> > > CRON job to set a certain page to run at pre-defined periods (schedule

> it)
> > >
> > > Is there an equvalent for ASP.NET/IIS? I've got some scripts which I

> could
> > > do with running daily and wondered the best way to do this?
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
pebbleshehe pebbleshehe is offline
Junior Member
Join Date: Aug 2007
Posts: 1
 
      09-06-2007
Hello World, I am new here.
I am a huge U2 and trash metal music junkie
I play basketball and like playing ping pong.
I enjoy this great forum www.velocityreviews.com.
Another thing I have a great time doing, but am just getting into is the swingers lifestyle
just wanted to say hi
Please don't critize me just because I like swingers dating
 
Reply With Quote
 
PeteJ PeteJ is offline
Junior Member
Join Date: Jul 2012
Posts: 1
 
      07-30-2012
Is is also an option to use an online cronjob service like http://cronjob.de or the new english version http://cronjobr.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
noia extreme equiv. for TB 1.0 Big Will Firefox 0 04-18-2005 07:27 AM
Servlet equiv in ASP.Net No One ASP .Net 0 09-30-2004 02:10 AM
META HTTP-EQUIV="Refresh" =?Utf-8?B?bWc=?= ASP .Net 3 06-30-2004 07:56 PM
UTF-8, LWP and http-equiv meta tags Donald Gordon Perl 0 02-25-2004 03:32 AM
@INC equiv in .csh scripts ? thewhizkid Perl 1 01-21-2004 03:13 PM



Advertisments