On Sun, Apr 23, 2000 at 12:57:24AM +0300, Jukka Lindgren wrote:
| How can I delete any and all 'core' files on my system without user
| intervention.
| I've seen a script on certain Sparcs at work, it was done with 'awk' or
| 'grep - or both.. I just can't remember.
| Do I start with 'find / -name core' or perhaps 'ls -R core' from the root
| and then pipe this to 'grep' or 'awk' and format it as a command to delete
| everything found.

Just find:
        find / -name core -type f -exec rm {} ';'
Frankly, I loathe this kind of thing. Instead, I just run a nightly job to
report them by email to me. They really don't accumulate that rapidly. If
some of your users are debugging something which is dumping core they'll be
REALLY annoyed if you blow away their process dumps without asking.

If you have real space problems (we have had with out CAD users) you can run
users' environments with the corelimit set low (or zero).
-- 
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

[EMAIL PROTECTED] (Jeremy Thomas) wrote:
= Get a life.  Even better, keep posting.  Even better, keep email me with 
= your insults.  I show them to my friends and we all laugh at the 
= stupidity of this.
A Trekkie telling someone to get a life.
Irony.  How sweet it is.
        - Michael D. Steeves <[EMAIL PROTECTED]>


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to