Page 1 of 1 1
Topic Options
#26687 - 2002-08-08 10:05 AM scheduler
marc Offline
Fresh Scripter

Registered: 2002-07-23
Posts: 10
I want to execute a kixtart script every 15 minutes.
Does anyone knows which function i can use?

Top
#26688 - 2002-08-08 10:13 AM Re: scheduler
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
Which OS ??
_________________________
Co


Top
#26689 - 2002-08-08 10:15 AM Re: scheduler
marc Offline
Fresh Scripter

Registered: 2002-07-23
Posts: 10
Windows2000
Top
#26690 - 2002-08-08 10:18 AM Re: scheduler
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
If it is Wondows NT/2000 you can use the AT command. If you have the Resouce Kit you can use Winat. If you use Windows 9x you can download a scheduler from www.download.com

Co [Big Grin]
_________________________
Co


Top
#26691 - 2002-08-08 10:28 AM Re: scheduler
marc Offline
Fresh Scripter

Registered: 2002-07-23
Posts: 10
the problem with the at command is that you can apparently schedule command only by date:

For example:
To back up the hard drive of the Marketing server to a tape drive at midnight every five days, create a batch program (Archive.cmd) containing the backup commands. Then schedule the batch program to run by typing:

at \\marketing 00:00 /every:5,10,15,20,25,30 archive

I don't know how to schedule command every 15 minutes

Top
#26692 - 2002-08-08 10:41 AM Re: scheduler
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
At www.download.com I have found in the past a freeware scheduler which can do that (I don't know the name of the tool) but you can use a batchfile like this:

at \\server1 04:00 c:\admintools\scopy d:\applic\office2000 \\server2\applic\office2000 /o /a /s >> %output%
at \\server1 04:15 c:\admintools\scopy d:\applic\office2000 \\server3\applic\office2000 /o /a /s >> %output%
at \\server1 03:30 c:\admintools\scopy d:\applic\office2000 \\server4\applic\office2000 /o /a /s >> %output%
at \\server1 03:45 c:\admintools\scopy d:\applic\office2000 \\server5\applic\office2000 /o /a /s >> %output%
at \\server1 03:00 c:\admintools\scopy d:\applic\office2000 \\server6\applic\office2000 /o /a /s >> %output%
at \\server1 03:15 c:\admintools\scopy d:\applic\office2000 \\server7\applic\office2000 /o /a /s >> %output%
at \\server1 02:30 c:\admintools\scopy d:\applic\office2000 \\server8\applic\office2000 /o /a /s >> %output%
at \\server1 02:45 c:\admintools\scopy d:\applic\office2000 \\server9\applic\office2000 /o /a /s >> %output%

Co [Big Grin]
_________________________
Co


Top
#26693 - 2002-08-08 03:07 PM Re: scheduler
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
What's wrong with using Task Scheduler. It's already built into Win2K. I use it on several servers to run scripts four times a day.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#26694 - 2002-08-08 03:21 PM Re: scheduler
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Use the ScheduleTask() UDF. And you can schedule a task in such a way that it repeats itself every 15 minutes by setting an appropriate start date/time and then setting the task to repeat for example every 15 minutes.
_________________________
There are two types of vessels, submarines and targets.

Top
#26695 - 2002-08-08 11:04 PM Re: scheduler
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
Just a note for installing the task scheduler.

MicroSoft claims, that if you install IE5 or greater on a 9x/NT computer, the task scheduler is automaticallay installed, or you can use Add/Remove from the controlpanel to add this option for IE.

This is NOT true!! You have to make a typical instalation of the Iexplorer, then the task scheduler is always added.

I have tried this with versions 5.xx through 6.0 and found out that to include the task scheduler, the only way to do this was to make a typical installation.

I hope this helps someone.
I have spent a lot of time to get the scheduler installed on all my NT servers. (to be abble to use Jens's ScheduleTask() UDF)

-Erik

Top
#26696 - 2002-08-08 11:15 PM Re: scheduler
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
To be more precise. The 'Task Scheduler' is part of the 'Offline Browsing Pack', therefore if you install the 'Offline Browsing Pack' you also get the 'Task Scheduler'.

See also Task Scheduler Service on Windows NT
_________________________
There are two types of vessels, submarines and targets.

Top
#26697 - 2002-08-08 11:23 PM Re: scheduler
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
Jens,

Nice to know. Maybe you should add this as a comment to your ScheduleTask() UDF

I found my own kludgy way. Maybe i should have posted my problems to the board/You [Wink]

-Erik

Top
#26698 - 2002-08-09 07:33 AM Re: scheduler
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Erik,

You are right and you are wrong..

Let me explain..

Back in the days of IE4, you had the options to install Task Scheduler and Active Desktop, but if you did not install these at the time of IE4 and you did upgrades to IE5/6 you would be missing them.

I did do some hacking about two years ago and figured out how to install the Task Scheduler from the IE installation without having to reinstall - [Cool]

You need the following files:
quote:

mstask.chm
mstask.dll
mstask.exe
mstask.hlp
mstask.inf
mstask.ini
mstinit.exe
schedule.reg

schedule.reg is:
code:
REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Schedule]
"Type"=dword:00000120
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,\
32,5c,4d,53,54,61,73,6b,2e,65,78,65,00
"ObjectName"="LocalSystem"
"DisplayName"="Task Scheduler"
"DependOnService"=hex(7):52,70,63,53,73,00,00
"DependOnGroup"=hex(7):00
"Group"=""
"NextAtJobId"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Schedule\Enum]
"0"="Root\\LEGACY_SCHEDULE\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001

To implement this, you need to do the following:
quote:

Task Scheduler Installation process..

Right-Click on the MSTASK.INF file.
Choose Install.

Double-Click on the SCHEDULE.REG and merge with the Registry.

Reboot the system.

We have done this process with a number of servers with great success.

DISCLAIMER: You will need to get these files from the appropriate installation of IE.

Was not able to duplicate this process for the Active Desktop. [Frown]

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 342 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.07 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org