Using UNIX find by time
Posted on 2004-10-10
I want to write a UNIX script that checks for any files older then 20mins in
in a unix directory. If it does find a file then an email gets sent notifying the administrator.
If no files are found then it doesn't do anything. Only thing I'm not so sure about writing is the finding of
files which are older then 20mins. I know how to find for files older then 1+ days.
Unix directory = /var/adm/test - check for files here older then 20mins
email = email@example.com - email to be sent here
Help would be appreciated in this scripting.