On Tue, Oct 07, 2003 at 09:35:45AM +1000, Michael Mansour wrote:
> I have a need to delete subdirectories in a particular
> directory tree if the directories in the tree are
> older than a certain time (say one month). I'd like to
> cron this script to work in the background and clean
> that diretory tree up.
> 
> What the best way/technique to do this?

I run a script called expiredir that I grabbed off the net somewhere
eons ago.  You can pass it various arguments, include number days or
directory sizes, from which it determines what to trim.

I see a version of expiredir at http://www.bogus.net/~torh/ but I don't
know if that is the one I'm actually using, and I'm too lazy to check...

-- 
Ed Wilts, Mounds View, MN, USA
mailto:[EMAIL PROTECTED]
Member #1, Red Hat Community Ambassador Program


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to