help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem SysLogging parenthesis in 2.1.16


From: Chip Seraphine
Subject: Problem SysLogging parenthesis in 2.1.16
Date: Thu, 20 Oct 2005 14:20:36 -0500
User-agent: Mozilla Thunderbird 1.0.5 (X11/20050711)

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).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]