[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting a variable from a shellcommand
From: |
Mark . Burgess |
Subject: |
Re: Setting a variable from a shellcommand |
Date: |
Tue, 21 Oct 2003 19:36:31 +0200 (MEST) |
Look up builtin functions in the reference documentation
M
On 21 Oct, Chip Seraphine wrote:
>
> I may be obtuse, but short of writing a module how can I set a cfengine
> variable from the output of a shellcommand? I could have sworn I've
> seen it done before, but I can't find it.
>
> I want to do set a variable (call it $(my_ypserver)) to the output of
> the /usr/bin/ypwhich command. A module seems like overkill for this....
>
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~