Login  Register

find command impact.

Posted by raiq1 on Sep 09, 2021; 8:27am
URL: http://erman-arslan-s-oracle-forum.124.s1.nabble.com/find-command-impact-tp10237.html

Dear Erman,

We are house keeping our EBS application and delete all the files that has occupy the space.

I have used cronjobs for this purpose to delete the files in one attempt, last time I got the impact and the command not only delete the core files but also delete the files inside the server directory.


#30 23 * * 5 find /u02/oracle/PROD/inst/apps/PROD_prodapp12/ora/10.1.2/forms/ -type f -mtime +7 -print -exec rm core*.* {} \; >>  /u01/cronjobs/logs/del_core_files_`date "+\%d\%m\%Y"`.log


Where is the mistake in this cronjob , my action plan  is to delete the core files only

in /u02/oracle/PROD/inst/apps/PROD_prodapp12/ora/10.1.2/forms/

But unfortunately it has not only delete the core files but inside the files under server directory.

Kindly help me to correct the command ,Hope you understand my query.

Regards,
Raiq