Вопрос

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

Это было полезно?

Решение

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

Другие советы

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 /?
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top