Windows NT system notifies the process by sending a special message
when some file has been changed. The process may provide some action in
turn.
( See: FindFirstChangeNotification / FindNextChangeNotification WIN32 API )
I guess there is an UNIX equivalent as well otherwise one has to watch
things him/herself,
for example via ROOT message mechanism.
Valery