Page 1 of 1
Monitor LOG file for NO CHANGES
Posted: Mon Dec 18, 2006 10:29 pm
by VERDI
Hi any suggestions welcome, I have a program that sends information to a log file every minute or so, what I would like to do is monitor this file and send an email when NO CHANGES are made in say a 20 min period.
Monitor LOG file for NO CHANGES
Posted: Mon Dec 18, 2006 11:45 pm
by Oleg
Look at this example. This task checks the changing of file time and file size. If both parameters have not changed, the task raises the alert.
You should turn on the "send email" action and disable the "Show message" in order to send email notification automatically.
Also you should create two variables with value 0 before first starting the task: OLD_FILEDATE and OLD_FILESIZE. Otherwise the task will not work.
See menu Options | Variables and open the tab "User variables".