What about using inotify (https://secure.wikimedia.org/wikipedia/en/wiki/Inotify) to get notified when file changes happen?
What about using inotify (https:/ /secure. wikimedia. org/wikipedia/ en/wiki/ Inotify) to get notified when file changes happen?