title: UNIX file change interval
body: <p>Is there a way to determine change frequency of a file?</p>
  
  <p>The situation is i have a log file which will be rolling all the time, in that way i can say my application is running .</p>
  
  <p>if it's not writing any then i can say there's some problem.
  So instead of using tail and see manually if the logs are rolling , how can i check if the log is rolling programmatically like analysing it for 2 mins and checking if logs are being written?
  Is there a way to track the change interval by using stat in some program kinda ???</p>
  
  <p>i mean i can take 2 mins as parameter,at first storing mtime and after 2mins checking with new time and confirming it's changed, but i need to know the frequency kinda like x modifications/time or number.of.lines written/sec kinda</p>