Page 1 of 1 1
Topic Options
#21725 - 2002-05-15 11:03 AM Scheduling a Task
Mark Bennett Offline
Getting the hang of it

Registered: 2001-10-10
Posts: 70
OK - I need to run a specific command at regular time intervals HOWEVER we can not use WinNT scheduler. This is because even when running the task in interactive mode the app we need to talk to does not always respond correctly. What I have discovered is that if the app is running and you manually run some specific command line tasks it works!

Therefore what I want to do is create a KiX script that will at a predefined time shell out and run the appropriate commands (all within a user's Terminal Server session and all interactively - long story).

My question is: Can I easily have KiX natively wait until a specific time then undertake a gosub routine?

Thanks,
Mark

Top
#21726 - 2002-05-15 11:06 AM Re: Scheduling a Task
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Mark,

well, yes :

sleep [specific time in seconds]
gosub "sub"

hth

Jochen
_________________________



Top
#21727 - 2002-05-15 11:15 AM Re: Scheduling a Task
Mark Bennett Offline
Getting the hang of it

Registered: 2001-10-10
Posts: 70
SLEEP would be OK but I was hoping to avoid adding an equation that works out how many seconds from the time the script starts running until the time the process needs to run.

I could sleep for 60 seconds then read the time and IF the hour and minutes = the time I want the process to run do it! Hmmm maybe I could even write my first function.

Top
#21728 - 2002-05-16 12:32 AM Re: Scheduling a Task
Mark Bennett Offline
Getting the hang of it

Registered: 2001-10-10
Posts: 70
I have posted a UDF called MyAT into the UDF section which does this.

Mark

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 1336 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.051 seconds in which 0.024 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