Hi,

I'm currently implementing promises that needs to be run after a 
specific date (and retrying until it is fixed), and before another date. 
What would be the best solution ?

For example, I want to check something only between 15/01/2010 19h00 and 
17/01/2010 14h00
What I came up with is :

classes:

  "check_after_date" expression => isgreaterthan(ago(0,0,0,0,0,0), 
on(2010,1,15,19,0,0));
  "check_before_date" expression => islessthan(ago(0,0,0,0,0,0), 
on(2010,1,17,14,0,0));


files:
  check_after_date.check_before_date::
       Do something


But it seems really awkward. How would you do ?

Regards,
Nicoals
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to