Date: Mon, 21 Sep 1998 19:02:00 +1200 From: Jonathan Chen <jonc@pinnacle.co.nz> To: Lanny Baron <beef@cybertouch.org> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: /etc/daily... Message-ID: <Pine.SGI.4.02.9809211900180.5666-100000@tui.pinnacle.co.nz> In-Reply-To: <Pine.BSF.3.96.980921020216.28022B-100000@beef.cybertouch.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SGI.4.02.9809211900180.5666-100000>