I would think that you should monitor the service and not necessarily the DrWatson log file. Here is some code to that should point you in the right direction. Let me now if I missed your intended target.
code:
;Status of service. The values can be found in the following list: Status Constant 
;ADS_SERVICE_STOPPED 0x00000001
;ADS_SERVICE_START_PENDING 0x00000002
;ADS_SERVICE_STOP_PENDING 0x00000003
;ADS_SERVICE_RUNNING 0x00000004
;ADS_SERVICE_CONTINUE_PENDING 0x00000005
;ADS_SERVICE_PAUSE_PENDING 0x00000006
;ADS_SERVICE_PAUSED 0x00000007
;ADS_SERVICE_ERROR 0x00000008


$computer = GetObject("WinNT://@wksta,computer")
? @serror
$service = $computer.GetObject("Service", "Clipsrv")
? @serror
$rc = $service.Status
? "Status=$rc"
If $service.Status <> 4
$service.Start
EndIf
get $_
If $service.Status <> 1
$service.Stop
EndIf
$rc = $service.Status
? "Status=$rc"



[ 08 May 2002, 15:55: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/