A+B: Difference between revisions
m
CFEngine example tidy
(CFEngine example) |
m (CFEngine example tidy) |
||
Line 1,853:
<syntaxhighlight lang="cfengine">
$ cat sum.cf
bundle agent main
{
Line 1,872 ⟶ 1,873:
"input[${indices}] is ${with}" with => storejson( "input[${indices}]" );
}
</syntaxhighlight>▼
$ cat input.txt
2 3
2 2
$ cf-agent -KIf ./sum.cf
R: 5
R: 4
▲</syntaxhighlight>
The "R:" prefix is for a report promise and the only way to output to stdout with policy.
|