Almost right. Windows 2000 has a scheduler in the control panel, and you can
set a single schedule to run every 5 minutes from a start time to a stop
time every day by using a weekly schedule. This has a front end GUI, but
still works with the legacy AT like in NT4. However using the AT may not be
what you want to do for something to run every 5 minutes. However, many
other programs that may be loaded on the computer have schedulers built into
them (one good example is the SQLServerAgent with SQL 7 etc.)

However, to schedule something on the local machine using at you can do
this:

at 23:30 /every:monday,tuesday,wednesday,thursday,friday,saturday,sunday
c:\tasks\myscript.pl

(example to schedule a single job to run at 11:30 pm every day).

Works fine for something like that, but not too good for something you need
to schedule every 5 minutes.

However, as a possibility to handle that, you might include include a line
as the last line in your script to schedule the next run for 5 minutes after
after current time or something like that. Just use shell or back ticks to
run the line to schedule the next run.

Steve H.

-----Original Message-----
From: Steven Yarbrough [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 28, 2001 3:22 PM
To: [EMAIL PROTECTED]
Subject: Re: Script for Sheduling jobs on NT


Windows NT/2000 built-in scheduler, the "at" program, will work, I
believe, but if your script is to run every 5 minutes, you might
simply use Perl's sleep command to time iterations of some loop.
That way the script's process won't have to start and stop
repeatedly.  It will simply wait in the background until it's ready
to run again.

Steven Yarbrough ([EMAIL PROTECTED])



>Why don't you try the built-in scheduling program in NT?  best bet.  Then
>have it run the specified script when you want.
>
>
>----- Original Message -----
>From: "Ackim Chisha" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Saturday, July 28, 2001 7:56 AM
>Subject: Script for Sheduling jobs on NT
>
>
>>  Does any one already have a perl script for NT that I could use to run
>like
>>  a cron job in unix.  Am writing a scrip that I need to have running
every
>5
>>  minuteseveryday. Or is there a way I can write my script so that it runs
>>  every 5 minutes. Task sheduler on NT looks like it cant help run my
script
>>  every 5minutes everyday.
>>
>>  Any help will be appreciated.
>>
>>  Thanks
>>  Ackim
>>
>>
>>
>>
>>  --
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

--
____________________________________________________________________________
_
"We are in the midst of husked coconuts; the basement is downstairs."
Steven Yarbrough -- http://ebstern.freehosting.net

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to