in reply to Monitor Directory modification

The most efficient way I am aware of to do this is using the fam daemon/api from SGI (and that is shipped by default on a number of Linux distros these days).

See SGI::FAM and http://oss.sgi.com/projects/fam/