help-cfengine
[Top][All Lists]
Advanced

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

list iteration?


From: Mike
Subject: list iteration?
Date: Mon, 03 May 2004 14:50:23 -0000
User-agent: slrn/0.9.7.4 (Linux)

I have read in the manual where you can define a variable

var = ( a : b : c)

and have the var iterated like a list in some shell command.


command::
        "/bin/some/program $(var)"

At run-time how do you add something to the list such that
at the end it can be iterated over?

groups:
        any::
                var = (a : b : c)

editfiles:
        any::
                { /etc/hosts
                        HashCommentLinesMatching "127.0.0.1"
                        var = ( $(var) : $(host) )
                }

shellcommands:
        changelog::
                "cat $(var) >> /ChangeLog"


reply via email to

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