Forum: Cfengine Help
Subject: Re: Populating slist from an execresult
Author: howardk
Link to topic: https://cfengine.com/forum/read.php?3,18222,18225#msg-18225
After a little head banging here is the result:
Needed to changed the sed delimiters to # instead of / (don't know why), then
the string
Forum: Cfengine Help
Subject: Re: Populating slist from an execresult
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18222,18224#msg-18224
Nicola,
I typically keep a list of services in the policy and run them against
chkconfig. You can tell by the return value if the
Forum: Cfengine Help
Subject: Re: Populating slist from an execresult
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,18222,18223#msg-18223
Nicola,
the truth is, execresult returns a string. You need splitstring() call to
produce an slist from a string.