Forum: Cfengine Help Subject: Re: bundlesequence and inputs using readstringlist Author: skibumatbu Link to topic: https://cfengine.com/forum/read.php?3,19057,19135#msg-19135
Seva, can you clarify what you mean by that? Perhaps it would be easier if you can show me a working example where bundlesequence and inputs are sourced from a seperate file? I'm sure that the inputs file is valid: server:/opt/cfengine/var/inputs # cat inputs.new fileA fileB fileC fileD server:/opt/cfengine/var/inputs # cat temp.cf body common control { bundlesequence => { "example" }; } ########################################################### bundle agent example { vars: "mylist" slist => { readstringlist("/opt/cfengine/var/inputs/inputs.new", "#.*", "\s", 10, 4000) }; reports: Yr2010:: "List entry: $(mylist)"; } server:/opt/cfengine/var/inputs # /opt/cfengine/sbin/cf-agent -f temp.cf R: List entry: fileA R: List entry: fileB R: List entry: fileC R: List entry: fileD Thanks, Scott _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine