Page 1 of 1 1
Topic Options
#62845 - 2002-02-05 05:56 PM Running Kix script as NT service
Breaker Offline
Hey THIS is FUN
*****

Registered: 2001-06-15
Posts: 268
Loc: Yorkshire, England
Does anyone have any useful advice/hints/tips/etc on this subject? I'd like a data collection/service monitoring script to run constantly in the background, firing off email alerts whenever necessary... I've not really considered trying to do this before, so I don't really know if there might already be some kind of utility available.

Answers on a postcard to the usual address, please...(!)

Thanks in advance,

Breaker

_________________________
================================================
Breaker


Top
#62846 - 2002-02-05 08:06 PM Re: Running Kix script as NT service
bleonard Offline
Seasoned Scripter
*****

Registered: 2001-01-19
Posts: 581
Loc: Chicago, IL
Breaker -
I use KiX scripts (v3.63) via Task Schedule Service all the time. Most are short term - run either 1 time a day, or every 3 hours etc. I simply schedule a batch file to call the KiX exe and script. I do not keep the KiX executable in my PATH to prevent KiX scripts starting improperly, or even as a virus-type attachment.

Syntax within schedule service:
:\Dir\SubDir\batchfile.cmd

Batchfile.cmd:
:\Dir\SubDir\Kix32.exe script.kix

Top
#62847 - 2002-02-05 09:26 PM Re: Running Kix script as NT service
pvds Offline
Hey THIS is FUN
*****

Registered: 2001-04-14
Posts: 201
Breaker,

We use NT4 WS and we use autoexnt service
and put in the autoexnt.bat your kix script.

The autoeexnt service is part of the NT4 recource kit.

GR Peter

Top
#62848 - 2002-02-05 10:40 PM Re: Running Kix script as NT service
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Another option is to use the Resource Kit utilities - SRVANY.EXE and INSTSRV.EXE, these will take your application and run it constantly.. To watch what is going on with it, you can have it "interact with the desktop" otherwise, it will run invisibly.

HTH,

- Kent

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

Top
#62849 - 2002-02-06 10:47 AM Re: Running Kix script as NT service
Breaker Offline
Hey THIS is FUN
*****

Registered: 2001-06-15
Posts: 268
Loc: Yorkshire, England
Hmmm... thanks for the input, guys. This is a bit of a case of "engage brain, before starting to post"!

To be honest, now I've had time to think about this when I'm not knackered - the best thing I can do would probably be to configure a whole bunch of PerfMon alerts to fire off a kix script with any required args.

The main reason being, the lack of event handling in kix. I suppose I could try to run a script as a massive While...Loop, but I really have no idea what that would do to my CPU.

I'm basically trying to configure some basic monitoring and alerting on our desktop machines, on a shoestring of course. I really need to think a bit more about exactly how I would accomplish this - sorry for taking up your time with a non-specific query like this.

I'll definitely look into the utilities you've mentioned, though...

Cheers,

_________________________
================================================
Breaker


Top
Page 1 of 1 1


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

Who's Online
0 registered and 799 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.076 seconds in which 0.046 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