Skip to content

Instantly share code, notes, and snippets.

@nickanderson
Forked from anonymous/test.cf
Created August 21, 2012 21:41
Show Gist options
  • Save nickanderson/3419685 to your computer and use it in GitHub Desktop.
Save nickanderson/3419685 to your computer and use it in GitHub Desktop.
#!/var/cfengine/bin/cf-agent -f
body common control {
bundlesequence => { "main" };
}
bundle agent main{
reports:
cfengine::
"I can be executed like a shell script";
}
@nickanderson
Copy link
Author

$ chmod 700 test.cf
$ ./test.cf
R: I can be executed like a shell script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment