The following line generates an error:

alerts:   foo|!foo::     SysLog(LOG_INFO,"cf.cfserver ran (blah blah)")

cf:cfengine::/var/cfengine/inputs/cf.finish:149: Unknown command or name out of context

Esacaping the parens with backslashes does not help, and I know of no special variable for parens. Removing them works fine:

alerts: foo!foo::        SysLog(LOG_INFO,"cf.cfserver ran blah blah")

...runs as expected.


The same problem exists if the parens are part of a variable, but using curly braces instead (e.g. ${date} in lieu of $(date)) seems to work OK (kinda like in the Exec functions).


_______________________________________________
Help-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to