Forum: CFEngine Help Subject: Re: How to run a command every two hours? Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,23176,23177#msg-23177
Well, I guess, the following approach fits if your goal is to run smth at least every 2 hours: classes:: "dev" and => {classmatch("vm.*.d"), "redhat" }; commands:: dev:: "/home/cmdb/cmdb.sh" action => ifelapsed("120"); Yet, if you need exact time intervals (closer to crontab-like approach), you'll need to replace "&" with "." and read about class expression syntax more thoroughly. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine