Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Schedule core dump removal with cron' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Schedule core dump removal with cron
Authored by: mfuhrer on Oct 03, '03 12:46:36PM
I prefer to leave core dumps enabled (I occasionally use them in conjunction with ddd - easy fink install, btw - for debugging my own programs) and look to cron for periodical clean-up. By adding the command

rm -f /cores/core.*

to your crontab file, along with relevant scheduling information, you prevent the core files from building up over time. More about cron and crontabs in this hint.

[ Reply to This | # ]
Schedule core dump removal with cron
Authored by: trekan on Oct 03, '03 01:51:34PM

If you want to have the core files for debug purposes, I'd rather delete them with this command in the crontab:

/usr/bin/find -name /cores/core.* -ctime 1 -delete

This only deletes core files older than 24 hours.



[ Reply to This | # ]
Schedule core dump removal with cron launchd
Authored by: tedw on May 14, '09 07:35:58PM
I feel obliged to point out that for OS X, launchd is always preferred to cron.

[ Reply to This | # ]