Skip to content

Instantly share code, notes, and snippets.

@neilhwatson
Created April 7, 2015 13:55
Show Gist options
  • Select an option

  • Save neilhwatson/7e9b96d203bc30ca73d4 to your computer and use it in GitHub Desktop.

Select an option

Save neilhwatson/7e9b96d203bc30ca73d4 to your computer and use it in GitHub Desktop.
for iflow885
body common control
{
bundlesequence => { "main", };
}
bundle agent main
{
vars:
"ls" string => execresult( "/bin/ls -laZ /usr/bin/vim", "noshell" );
reports:
"ls [${ls}]";
}
newatson@ltipc682:~/.cfagent/inputs$ cf-agent -Kf ./ls.cf
R: ls [-rwxr-xr-x root root ? /usr/bin/vim]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment