Forum: CFEngine Help Subject: Re: multiple command sequences as a variable Author: phnakarin Link to topic: https://cfengine.com/forum/read.php?3,24113,24117#msg-24117
You should use 'useshell' to your command promise too. aix: "sshd_restart" string => "/usr/bin/stopsrc -s sshd; /usr/bin/startsrc -s sshd"; commands: "$(sshd_restart)" comment => "restart sshd", contain => in_shell; .. .. body contain in_shell { useshell => "true"; } Cheers, --Nakarin _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine