In Sun OS mmin doesnt work to delete the older files..
To delete older files on SunOS use "newer" option
oracle@sev2(1125) db2 /opt/app/db2/oracle/admin/db2/udump$ date Tue May 17 18:33:22 EDT 2016 oracle@sev2(1126) db2 /opt/app/db2/oracle/admin/db2/udump $ touch 05171633 /tmp/TIMESTAMP [05=month 17 = date 1633 = 16:33 pm ( 2 hours older than current time)] oracle@sev2(1128) db2 /opt/app/db2/oracle/admin/db2/udump $ nohup find . ! -newer /tmp/TIMESTAMP -exec rm {} \;
No comments:
Post a Comment