Should it not be ".* OpenSSH.*"  fro the regular expression?

Marco

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of [email protected]
Sent: Wednesday, February 17, 2010 2:17 PM
To: [email protected]
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
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to