script to execute a command based on the last modified time of a folder
Hi All,
I need a script that executes a command based on a folder's last modified time.
if "/var/data" was modified in less than an hour then "/usr/local
/etc/searchd stop" should be run
can we use "find -mmin +60 -type d" in conjunction with second command
Thanks
midadala
Last edited by midadala; 10-19-2010 at 05:29 AM.
|