Automatic notification when a file gets modified
Posted: Mon Sep 16, 2002 8:39 am
Hi
I don't know if this is the right forum, but here goes:
How can you "watch" a file on Unix so that everytime the file gets modified, a script runs which does all sorts of stuff, like sending an e-mail notification, etc. to the administrator?
I suppose you can add this to the cron program to check every hour or so if the modified date of this file has changed, but I prefer to be notified immediately.
Thanks
I don't know if this is the right forum, but here goes:
How can you "watch" a file on Unix so that everytime the file gets modified, a script runs which does all sorts of stuff, like sending an e-mail notification, etc. to the administrator?
I suppose you can add this to the cron program to check every hour or so if the modified date of this file has changed, but I prefer to be notified immediately.
Thanks