Why not use $(sys.host) or one of the other sys. standard variables? exec result, of course, works fine in the newest version of CFEngine. What makes you think it doesn't?
On 11/15/2011 08:58 AM, Seifert, Christian wrote: > Hello everybody, > > i want to use the function “execresult” to write the hostname in a > variable. > > Here is my example: > > vars: > > "hostname" string => execresult("/bin/hostname","noshell"); > > Can I use the execresult function in the newest version of cfengine? > > Regards > > -- > *Christian Seifert* > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine