function

First seen , last seen .

execresult

See also: execresult (function-call)

A built-in CFEngine function in the utils category that returns a string. execresult is called 34 times from 16 bundles and bodies in 9 policy files, on 100 hosts in your infrastructure.

Signature
execresult(string, option, [option], ...)
Parameters
  1. string Fully qualified command path (.+)
  2. option Shell encapsulation option (noshell,useshell,powershell)
  3. option Which output to return; stdout or stderr (both,stdout,stderr)
Variadic: at least 2 and at most 3 arguments.
Returns
string
Category
utils