I need to create a shell script that will delete core dumps from cold fusion and ags (found in /var) and then add it to the crontab to run hourly. Can anyone help or know what i am talking about (I sure dont).
Automating the removal of core dumps is a good idea, but can be frustrating when you have deleted core dumps which you might need to retain for analysis purposes.
Better to retain them for a few days with :-
find /var -name core -ctime +5 -exec rm{}\;
Where the +number is the number of days. This command will therefore only delete core dumps older than 5 days.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.