[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: module vars and control vars different?
From: |
Mark . Burgess |
Subject: |
Re: module vars and control vars different? |
Date: |
Thu, 25 Jul 2002 10:07:54 +0200 (MET DST) |
Split cannot work on module vars, I'm afraid.
M
On 23 Jul, Chris (Ducky) Chapin wrote:
>
> If I have a cfagent.conf that looks like this:
>
> === cfagent.conf
> control:
> actionsequence = ( module:foo shellcommands )
> moduledirectory = ( <whereeverthatdamnedthingis> )
>
> bar = ( "one:two:three" )
>
> shellcommands:
> any::
> "/usr/bin/echo $(foo)"
> "/usr/bin/echo $(bar)"
>
>
> === module:foo
> #!/bin/sh
>
> echo "=foo=once:twice:thrice"
>
> ===
>
> I get the following output:
>
> cfengine:devhost: once:twice:thrice
> cfengine:devhost: one
> cfengine:devhost: two
> cfengine:devhost: three
>
>
> Am I missing something or does split mpt work on variables defined in
> modules?
>
>
> -Ducky
>
> --
>
> Christopher 'Ducky' Chapin ducky@qualcomm.com
> Unix Systems Administrator - Qualcomm, Inc. (858) 651-5433
> IT Host Services - AE-209F
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~