Maybe you could use something like
every 10 seconds or so and scan the output for differences. Afterwards you could output the current date and time to a text file.
Edit: above solution might be better, of course.
Pitendo - Case And Emulator Project - http://edv-huber.com/index.php/problemloesungen/12-pitendo