Monitor LOG file for NO CHANGES

Discuss RoboTask here
Post Reply
VERDI
Posts: 5
Joined: Tue Jun 06, 2006 12:52 am

Monitor LOG file for NO CHANGES

Post 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.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Monitor LOG file for NO CHANGES

Post 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".
Last edited by Oleg on Tue Dec 19, 2006 3:51 am, edited 1 time in total.
Post Reply