> 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.
Just as a point of interest, I'd suspect the following line (which is
the version used here) would kill that email as well...
Q> 30 4 * * * find / -name core -type f -exec rm {} ';'
It runs slightly earlier than yours, but otherwise differs little...
> You may want to speak to your sys-admin and see if this would be a
> viable option. Good luck.
Already tried, and he's not interested, but I did find out what script
he's using...
Q> #!/bin/sh
Q> XYZZY="`find / -name core`"
Q> for LOOP in `find $XYZZY | sort -ru` ; do
Q> rm -fr $LOOP
Q> done
Apparently, the version I use (and show above) is "too simple to do
the job"...and the version he uses was written for him by his son,
who's doing Comp Sci on Solaris as school - aged 14 !!!
Best wishes from Riley.
-
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/