help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Testing for file age


From: John van Zantvoort
Subject: Re: Testing for file age
Date: Mon, 13 Feb 2006 16:58:41 +0100

It would be handy, a syntax like in find e.g. where a construction like MtimeFunc( '/path/to/file', '+3' ) or MtimeFunc( '/path/to/file', '-8' ) can be used so you could test if a file is older then 3 days or younger then 8 days.

regards,

John

On 2/13/06, Mark Burgess <Mark.Burgess@iu.hio.no> wrote:

I could easily add a special function to the list to compare this
directly if you are interested in using the latest. Otherwise you could
use a file filter - a bit awkward

M

On Mon, 2006-02-13 at 12:03 +0100, John van Zantvoort wrote:
> Hi,
>
> I'd like to test for a files mtime to define a class so if e.g.
> the /var/lib/slocate/slocate.db file is more then 4 days of define the
> class run_updatedb. but I've not been able to find such a function
> within cfengine.
>
> Any hints?
>
> --
> Met vriendelijke groeten/with kind regards
>
>         John van Zantvoort
>
> ---
>
> Paranoia is simply an optimistic outlook on life.
>
> GCM d- s+:+ a- C+ UL+++ P+++ L++ E--- W++ N+ o K-
> w-- O- M- V- PS+ PE- Y+ PGP+ t+ 5 X- R- tv b+ DI++
> D+ G e h- r++ y+
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine




--
Met vriendelijke groeten/with kind regards

        John van Zantvoort

---

Paranoia is simply an optimistic outlook on life.

GCM d- s+:+ a- C+ UL+++ P+++ L++ E--- W++ N+ o K-
w-- O- M- V- PS+ PE- Y+ PGP+ t+ 5 X- R- tv b+ DI++
D+ G e h- r++ y+

reply via email to

[Prev in Thread] Current Thread [Next in Thread]