Should it not be ".* OpenSSH.*" fro the regular expression?
Marco -----Original Message----- From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of nwat...@symcor.com Sent: Wednesday, February 17, 2010 2:17 PM To: help-cfengine@cfengine.org Subject: regcmp help A regcmp I would expect to match does not. What have I done wrong? [nwat...@unxxhd01 inputs]$ cat regcmp.cf ###################### body common control { bundlesequence => { "test" }; } bundle common agent { classes: "all" expression => "any"; } bundle agent test { classes: "port" expression => regcmp("OpenSSH","SSH-OpenSSH-4.3"); reports: port:: "Port match!"; !port:: "No port match!"; } [nwat...@unxxhd01 inputs]$ ~/src/cfengine-3.0.3/src/cf-agent -Kf ./regcmp.cf R: No port match! Sincerely, -- Neil Watson 416-673-3465 _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine