Frage

I want to monitor a log(txt) file in Windows server and want to execute a script (to stop a windows service) on some keyword when it comes up in the log.

Is there any tool or script that can achieve this task? Thanks

War es hilfreich?

Lösung

PA Server Monitor's Log File Monitor can do exactly that.

Andere Tipps

You can set a schedule task every 5 mins and do this.

findstr /c:"[Fonts]" c:\windows\win.ini

If errorlevel = 1 goto :eof

sc start servicename

For help (read the Dos 6.22 reference for Find for exit codes [1 found, 2 not found, 3 error]) and type

findstr /?
schtasks /?
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top