Page 1 of 1 1
Topic Options
#169091 - 2006-10-09 01:01 PM Automatic Update Service
DJM Offline
Fresh Scripter

Registered: 2006-08-15
Posts: 10
Hi Guys,

I need to check that the automatic update service (wuauserv) is running. If it is then the script can simply end with a message "service running". If it isn't then I need to send an email to the site administrator.

Anyone got any ideas on the best way to complete this ??

Top
#169092 - 2006-10-09 02:23 PM Re: Automatic Update Service
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Do you mean check if a local service running?

Have a look at this thread for a simple solution:
http://www.kixtart.org/ubbthreads/showflat.php?Cat=0&Number=165936&an=&page=0&vc=1

Top
#169093 - 2006-10-09 02:24 PM Re: Automatic Update Service
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
You could use ActiveService()- Checks whether a service is active to check the status of the service and one of the mailer UDF's for example MAILER() - e-mail recipient/recipients to send a e-mail if it is not running. There are other UDF's out there to query a service, have a look in the UDF section. The one above is just an example to push you in the right direction.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

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 857 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.048 seconds in which 0.022 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