Forum: CFEngine Help
Subject: Re: Motd generation
Author: toddnni
Link to topic: https://cfengine.com/forum/read.php?3,23623,23624#msg-23624
Hello,
to capture output of a commmand use the execresult function
vars:
"my_result" string => execresult("uname -a");
and to combine two variables I would simply
vars:
"combined" string =>
"$(uname_output)
$(static_message)";
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine