From owner-freebsd-questions Mon Sep 21 00:05:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA15707 for freebsd-questions-outgoing; Mon, 21 Sep 1998 00:05:13 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from kakapo.pinnacle.co.nz (pinsoft.internet.co.nz [202.37.141.181]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA15680 for ; Mon, 21 Sep 1998 00:05:02 -0700 (PDT) (envelope-from jonc@pinnacle.co.nz) Received: from tui.pinnacle.co.nz (tui.pinnacle.co.nz [202.37.163.3]) by kakapo.pinnacle.co.nz (8.8.8/8.8.8) with SMTP id TAA15765; Mon, 21 Sep 1998 19:02:36 +1200 (NZST) (envelope-from jonc@pinnacle.co.nz) Date: Mon, 21 Sep 1998 19:02:00 +1200 From: Jonathan Chen To: Lanny Baron cc: freebsd-questions@FreeBSD.ORG Subject: Re: /etc/daily... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 21 Sep 1998, Lanny Baron wrote: [Next time, please Cc: the list as well] > Hello Jonathan, > > Thanks again for your reply. I have looked just after doing > ./daily to see what happens. It does not clean out /tmp completely for some > reason. Here is the part of /etc/daily I have uncommented: > > f [ -d /usr/tmp ]; then > cd /usr/tmp && { > find . -type f -atime +3 -ctime +3 ! -name '.X*-lock' -exec rm -f > --$ > find -d . ! -name . -type d -mtime +1 -exec rmdir -- {} \; \ > >/dev/null 2>&1; } > fi Note that the atime option has been used with find(1). This means that if you even *look* at the file in the last 3 days, it will not delete it. Jonathan Chen -------------------------------------------------------------------- "Lots of folks confuse bad management with destiny" - Kin Hubbard To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message