From owner-freebsd-questions Mon Aug 27 21:40:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wombat.bytecraft.au.com (wombat.bytecraft.au.com [203.39.118.3]) by hub.freebsd.org (Postfix) with ESMTP id A199637B401 for ; Mon, 27 Aug 2001 21:40:03 -0700 (PDT) (envelope-from MurrayTaylor@bytecraftsystems.com) Received: from lt99101401.bytecraft.au.com (unknown [203.39.118.42]) by wombat.bytecraft.au.com (Postfix) with SMTP id 4C68A3F02 for ; Tue, 28 Aug 2001 14:40:00 +1000 (EST) Message-ID: <02a301c12f7b$7d816740$2a7627cb@bytecraft.au.com> Reply-To: "MurrayTaylor" From: "MurrayTaylor" To: Subject: Checking for files older than a certain time Date: Tue, 28 Aug 2001 14:39:57 +1000 Organization: Bytecraft Systems MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Given that I am running a Samba filesystem and have a directory visible to the windoze users that is a 'common' area, what comand could I use to enforce a 14 day storage period before a mandatory erasure occurs? The file time stamps sometimes are waaaaay in the past if someone copies a historic file there so another someone can access it. Yet this historic file should remain in the 14daytemp directory for the 14 day grace period I would like to run a cron job with something like find /tempdir -ctime +14 -delete {} but testing this with -print seems to miss some files I reckon should be clobbered.... Should I do something like ll > somefile ... (14days later ) diff ll somefile (syntax ?) delete anything that pops out from the 14day old ll capture cheers mjt CHANGE OF ADDRESS Please note my new e-mail address Murray Taylor Bytecraft Systems Pty Ltd murraytaylor@bytecraftsystems.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message