Cfengine Help: Re: selecting files over N minutes/days/etc. old

2011-05-30 Thread no-reply
Forum: Cfengine Help Subject: Re: selecting files over N minutes/days/etc. old Author: charming88 Link to topic: https://cfengine.com/forum/read.php?3,22155,22309#msg-22309 Now, what have I earned since I timberland boots for men went into politics? Well, here it is. I've jotted it down. L

Re: selecting files over N minutes/days/etc. old

2011-05-21 Thread Aleksey Tsalolikhin
/me applauds Thank you :) On Sat, May 21, 2011 at 2:25 PM, Daniel V. Klein wrote: > Well, you could always do this instead: > > body file_select modified_over_a_year_ago > > { > mtime => irange(ago(1,0,0,0,0,0),now()); > file_result => "!mtime";   # modified more than a year ago > } > > On May

Re: selecting files over N minutes/days/etc. old

2011-05-21 Thread Daniel V. Klein
Well, you could always do this instead: body file_select modified_over_a_year_ago { mtime => irange(ago(1,0,0,0,0,0),now()); file_result => "!mtime"; # modified more than a year ago } On May 21, 2011, at 10:16 PM, Aleksey Tsalolikhin wrote: > The following policy selects files more than a yea

selecting files over N minutes/days/etc. old

2011-05-21 Thread Aleksey Tsalolikhin
The following policy selects files more than a year old (for modification time). Literally, it selects files whose mtime is between 1 year old and 100 years old. Am I missing a more elegant way to do this or is this the right way? bundle agent example { files: "/tmp/test_from" file_sel