Peter Daum <[EMAIL PROTECTED]> writes: > Is there any way to use cfagent (or is there any stripped down > version of cfagent) to simply execute a script? > There has been a similar question on this list in the past (see "Does > a standalone editfiles command tool exist?") but no answer > so far. > > Some parts of cfengine would be pretty for me (I assume, for others, too), > but I have no use for the whole infrastructure that is normally expected > (server, scheduler ...). > > I did some experiments with "cfagent -c <some script>" - it works more > or less, but whines about the missing host key and creates a directory > tree below "var/cfengine" (which for my purposes would be pretty annoying). > > Any ideas? Does anybody know of any other tool with a similar high-level > command set that is more modest in the environment it requires?
Sure. When I log into one of my boxes, one of the tasks that normally runs is to ask, to run, the script $HOME/bin/cfcleanup Which is a cfengine script, chmod o+x, that starts with the common shell-ly prelude... #!/usr/sbin/cfagent -f # $Id$ # cfengine script to clean up my "home" stuff... -- output = ("cbbrowne" "@" "ca.afilias.info") <http://dba2.int.libertyrms.com/> Christopher Browne (416) 673-4124 (land) _______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine