bash script for monitoring file update
Dear all,
I wish to monitor the change of a file in the UNIX system to see if it has been updated consistently. What I had in mind is to return the last modification date of the file, and compare it with the current time in the system (output of command "date"). If the difference is bigger then three minutes, then the file has not been updated in the last three minutes and I wish the system to send me an alert email.
I am not sure if this is feasible with BASH command in the UNIX system. If yes, can anyone give me some hints on how to achieve this?
Many thanks in advance,
epomqo
|