سؤال

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