[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "tidy" not deleting files from the future
From: |
Brendan Strejcek |
Subject: |
Re: "tidy" not deleting files from the future |
Date: |
Tue, 13 Dec 2005 16:06:26 -0600 |
User-agent: |
Mutt/1.5.6+20040818i |
Paul Krizak wrote:
> yeah that's not exactly what I'm looking for either. It doesn't scale
> at all for large groups of files, nevermind big trees of stuff (for
> example, we delete /usr/local, all of it, during install).
How does tidy scale better? You could use IsDir rather than FileExists
along with the -r option or "find" with some criteria and a -exec
option.
Here is a hack to get a big recursive delete to return quickly:
/bin/sh -c '( /bin/rm -rf /some/path & )'
> Usually when we need to do a true "force" of a delete, we just do a
> shellcommand of rm -f, and let it keep trying to delete the missing
> files forever.
Hmm, I would at least wrap it with a class like my previous example.
> I'd much rather use tidy in all situations, however.
"disable" might also be an option.
Best,
Brendan
--
Senior System Administrator
The University of Chicago
Department of Computer Science
http://www.cs.uchicago.edu/people/brendan
http://people.cs.uchicago.edu/~brendan
Re: "tidy" not deleting files from the future, Mark Burgess, 2005/12/14