Pregunta

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

¿Fue útil?

Solución

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

Otros consejos

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 /?
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top