From owner-freebsd-questions@FreeBSD.ORG Sat May 12 17:09:21 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 38AA516A400 for ; Sat, 12 May 2007 17:09:21 +0000 (UTC) (envelope-from hemi@puresimplicity.net) Received: from just.puresimplicity.net (just.puresimplicity.net [68.77.126.251]) by mx1.freebsd.org (Postfix) with ESMTP id E87B013C44B for ; Sat, 12 May 2007 17:09:20 +0000 (UTC) (envelope-from hemi@puresimplicity.net) Received: from just.puresimplicity.net (localhost.puresimplicity.net [127.0.0.1]) by just.puresimplicity.net (8.13.8/8.13.6) with ESMTP id l4CH9Kuc066700 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 12 May 2007 12:09:20 -0500 (CDT) (envelope-from hemi@just.puresimplicity.net) Received: (from hemi@localhost) by just.puresimplicity.net (8.13.8/8.13.6/Submit) id l4CH9K2p066699; Sat, 12 May 2007 12:09:20 -0500 (CDT) (envelope-from hemi) Date: Sat, 12 May 2007 12:09:19 -0500 From: Josh Tolbert To: RW Message-ID: <20070512170919.GA66680@just.puresimplicity.net> References: <20070512050558.GA28182@just.puresimplicity.net> <20070512160200.1c5ecf9e@gumby.homeunix.com.> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070512160200.1c5ecf9e@gumby.homeunix.com.> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender is SPF-compliant, not delayed by milter-greylist-2.0.2 (just.puresimplicity.net [127.0.0.1]); Sat, 12 May 2007 12:09:20 -0500 (CDT) Cc: freebsd-questions@freebsd.org Subject: Re: Is there any already-existing method for removing empty dirs through periodic? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 May 2007 17:09:21 -0000 On Sat, May 12, 2007 at 04:02:00PM +0100, RW wrote: > On Sat, 12 May 2007 00:05:58 -0500 > Josh Tolbert wrote: > > > ... > > This setup eats disk space fast. I've been using the clean-tmps daily > > periodic to remove all files older than seven days from the video > > location, which takes care of the space issue, but there's one more > > little issue. It leaves a lot of empty directories. I could just > > write a cron entry to take care of empty directories, but I'm hoping > > there's something I'm missing and there's a way to remove empty > > directories from the locations specified in daily_clean_tmps_dirs > > They should be deleted automatically, but it's based on when they are > last modified, not just when the last file is removed, so it should take > 14 days in your case. Now that I look at it, you're right. Thanks. Sorry for wasting everyone's time. Thanks, Josh -- Josh Tolbert hemi@puresimplicity.net || http://www.puresimplicity.net/~hemi/ Security is mostly a superstition. It does not exist in nature, nor do the children of men as a whole experience it. Avoiding danger is no safer in the long run than outright exposure. Life is either a daring adventure, or nothing. -- Helen Keller