Shell

I need to write a supervisory program, for which is given a
directory name and a character string as parameters.
The program have to watch in half minutes the changes in files which names start with that string, and are located in the given directory its subdirectories too.
Under changes I mean :
if the files rights have changed
if the files last access time changed
if the files last modification time changed
I have to write these changes in a new file in this way:

(file name - change type - old value -> new value (date and time))
And finally in every 5 minutes I have screen the changes also on the monitor.
I will be very grateful if someone would help me.

Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.