help-cfengine
[Top][All Lists]
Advanced

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

Re: Setting a variable from a shellcommand


From: Chip Seraphine
Subject: Re: Setting a variable from a shellcommand
Date: Tue, 21 Oct 2003 13:03:37 -0500
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.2.1) Gecko/20030121


Argh! At least as of 2.0.6, ExecResult is mentioned in the tutorial but *not* the Reference. I shoulda looked in both....

Anyway, that does the trick nicely.  Thanks.

See everybody at the BOFS!

Mark.Burgess@iu.hio.no wrote:
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~






reply via email to

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