Forum: CFEngine Help
Subject: How to run a command every two hours?
Author: myabdemon
Link to topic: https://cfengine.com/forum/read.php?3,23176,23176#msg-23176

Hello,

I am trying to run a command, facter every two hours every day.

Here is my policy, but it doesn't work.

"dev" and => {classmatch("vm.*.d"), "redhat" };

dev&(GMT_Hr00|GMT_Hr02|GMT_Hr04|GMT_Hr06|GMT_Hr08|GMT_Hr10|GMT_Hr12|GMT_Hr14|GMT_Hr16|GMT_Hr18|GMT_Hr20|GM\
T_Hr22)&Min00_05::
                "/home/cmdb/cmdb.sh"
                action => immediate;

Command facter is written in cmdb.sh.
Is there any suggestions to it? 

PS: I know I can use cron to run it, but my boss wants me to use Cfengine.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to