Re: Directory name problem...

Joe (jgreen@t-rex.stu.wesleyan.edu)
Sun, 25 Oct 1998 12:15:26 +0000 (GMT)


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.
--Joe

On Sun, 25 Oct 1998, Riley Williams wrote:

> Hi there.
>
> I know this will sound daft, and to an extent, I feel daft for asking
> it, but it's one problem that I could do without...
>
> The system administrator of the main system I use recently installed a
> script which automagically deletes all directory entries named 'core'
> every time it's run, which looks like hourly.
>
> At face value, this looks like an eminently reasonable thing to do,
> and it would be apart from one slight problem, which is that it
> prevents the Linux kernel sources from compiling...
>
> Unfortunately, the Linux kernel source tree includes a directory named
> core - check for yourself, it's in directory net under wherever you've
> stored the kernel from - and one side effect of the said script is
> that every time it's run, the said directory and everything in it gets
> wiped...

-
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/