>Riley,
> I admin a machine, and do the same thing to wipe out cores every
>day. However, all i use is the following line in my root crontab:
>
>0 6 * * * find / -name core -exec rm {} ';'
>
>Since this only wipes files, not directories, this leaves all my kernel
>stuff ok. every morning, my cron daemon sends me an e-mail that it
>couldn't wipe out 3 or 4 files with the name "core" in them, because they
>are in fact directories, and rm doesn't work. You may want to speak to
>your sys-admin and see if this would be a viable option. Good luck.
Nonetheless that is dangerous as it assumes that every single
file named "core" is in fact a core file which may be deleted.
This is not always the case.
To be 100% sure, you should write a small script which passes
each file returned by your "find" operation through the "file"
program. "file" properly determines core files. Then you can
rest assured of safe core file deletion.
-- Mike A. Harris - Computer Consultant - Linux advocateLinux software galore: http://freshmeat.net
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/