|
From: | Chip Seraphine |
Subject: | Setting a variable from a shellcommand |
Date: | Tue, 21 Oct 2003 12:31:00 -0500 |
User-agent: | Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.2.1) Gecko/20030121 |
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....
[Prev in Thread] | Current Thread | [Next in Thread] |