From owner-freebsd-questions@FreeBSD.ORG Tue Apr 17 13:13:19 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 874CF16A402 for ; Tue, 17 Apr 2007 13:13:19 +0000 (UTC) (envelope-from bseklecki@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id 4C7C813C448 for ; Tue, 17 Apr 2007 13:13:19 +0000 (UTC) (envelope-from bseklecki@collaborativefusion.com) Received: from collaborativefusion.com (mx01.pub.collaborativefusion.com [206.210.89.201]) (TLS: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Tue, 17 Apr 2007 09:13:18 -0400 id 00056440.4624C7EE.0000FFD8 Received: from Internal Mail-Server by mx01 (envelope-from bseklecki@collaborativefusion.com) with RC4-MD5 encrypted SMTP; 17 Apr 2007 08:12:45 -0500 From: "Brian A. Seklecki" To: Dave In-Reply-To: <000d01c780e6$e0ac9a70$0200a8c0@satellite> References: <000d01c780e6$e0ac9a70$0200a8c0@satellite> Organization: Collaborative Fusion, Inc. Date: Tue, 17 Apr 2007 09:13:17 -0400 Message-Id: <1176815597.25941.136.camel@soundwave.pgh.priv.collaborativefusion.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.6.3 FreeBSD GNOME Team Port Cc: freebsd-questions@freebsd.org Subject: Re: error in find on daily output disk clean 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: Tue, 17 Apr 2007 13:13:19 -0000 The script doesn't grep -v for any user-settable variable to exclude certain paths...it just runs on / with some FS Type exceptions. A quick cheap hack could be put in place to include "! ${user_settable_exclude} ~BAS rc=$(find / \( ! -fstype local -o -fstype rdonly \) -a -prune -o \ \( $args \) -atime +$daily_clean_disks_days -delete $print | tee /dev/stderr | wc -l) On Tue, 2007-04-17 at 07:52 -0400, Dave wrote: > Hello, > One of my periodic.conf checks is running the daily disk cleaner. When > it uses find it is looking in my jail area, which has device files and other > virtual items that are not existing. I am getting output from find in the > output to that effect. I'd like to tell find in that script not to look in > my jail area, to exclude it. > Thanks. > Dave. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Brian A. Seklecki Collaborative Fusion, Inc. IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.