function

First seen , last seen .

execresult_as_data

See also: execresult_as_data (function-call)

A built-in CFEngine function in the utils category that returns a data container. execresult_as_data is called 1 time from 1 bundle or body in 1 policy file, on 100 hosts in your infrastructure.

Signature
execresult_as_data(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
data
Category
utils