hello gustavo
yeah even mtime can be used.but i have asituation wherein something is written into the log file only when there is an error,So if i blinldy use mtime or atime i wil even delete those files which are currently opened by my application and the application is running without error for last 14 days.So i need a script which will only delete log files which are not opened by any application and are 14 days old.
Thanks