Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Aug 2001 14:53:56 +1000
From:      "MurrayTaylor" <MurrayTaylor@bytecraftsystems.com>
To:        "Erick Mechler" <emechler@techometer.net>, "MurrayTaylor" <taylorm@bytecraft.au.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Checking for files older than a certain time
Message-ID:  <02b701c12f7d$71a5e700$2a7627cb@bytecraft.au.com>
References:  <02a301c12f7b$7d816740$2a7627cb@bytecraft.au.com> <20010827214241.D46811@techometer.net>

next in thread | previous in thread | raw e-mail | index | archive | help
yup - except that it seems that the windoze users carry in the file mod time
as it was, which
may be many weeks ago ... this then only has lifetime in the temp dir of
< 1 day (ie up till i run the cron job)

----- Original Message -----
From: "Erick Mechler" <emechler@techometer.net>
To: "MurrayTaylor" <taylorm@bytecraft.au.com>
Cc: <freebsd-questions@FreeBSD.ORG>
Sent: Tuesday, August 28, 2001 2:42 PM
Subject: Re: Checking for files older than a certain time


> Pretty sure you want to use mtime, not ctime:
>
>      -mtime n
>              True if the difference between the file last modification
time
>              and the time find was started, rounded up to the next full
>              24-hour period, is n 24-hour periods.
>
> --Erick
>
> At Tue, Aug 28, 2001 at 02:39:57PM +1000, MurrayTaylor said this:
> :: 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
>


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?02b701c12f7d$71a5e700$2a7627cb>