[CentOS] if the file changes send email about diff

Sun Feb 6 14:33:00 UTC 2011
Joseph L. Casale <jcasale at activenetwerx.com>

>I'm trying to create a script, that watches the changes in
> "/dev/shm/dhcpacks-in-last-2min.txt" file [in every 1 sec].

Have  look at Gamin, its designed for this type of thing...