On 20/02/2012 14:04, no-re...@cfengine.com wrote: > Forum: CFEngine Help > Subject: Re: Select files > Author: skycoyotte > Link to topic: https://cfengine.com/forum/read.php?3,24901,24951#msg-24951 > > Hi, > > I tried the debug mode. > There are many lines ! > At this point, i have no idea about my trouble. > > I tried to use different unit like '50m' or '50000' for the minimal irange > value.... but nothing to do. > > I think there is a mistake with the file_result value, but i can't say more > than that. > I attach my promise to this post. > > If anybody have an idea, i'll be happy. I don't know how to write my promise > in another way. > > Regards Hi,
Looking at the reference manual ( https://cfengine.com/manuals/cf3-reference#file_005fselect-in-files ) it seems that the proper syntax would be : body file_select data_log_size(a,b,c) { leaf_name => { "$(a)" }; search_size => irange("$(b)", "$(c)"); file_types => { "dir" }; file_result => "!file_types.leaf_name.size"; } (note that in the logical expression, it is "size" and not "search_size" Regards Nicolas _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine