Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Weird unset variable warning? Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,21134,21143#msg-21143
Jesse Becker Wrote: ------------------------------------------------------- > On Mon, Mar 14, 2011 at 10:04:40AM -0400, > >Author: sauer > >Link to topic: https://cfengine.com/forum/read.php?3,21129,21133#msg-21133 > > > >I'm using the find in relation to a message I posted a few days ago; I need > >to edit a few thousand perl files... > Perhaps coding it up in Perl (which can do both the recursion and edits > without the overhead of thousands of forks() calls), then having cfengine > commands: promise for it makes sense? Well, I need to promise that the suid bit and ownership are set as well, and if I'm going to do the work with perl, I may as well just do a little more work and have perl do everything. That negates the benefit of Cfengine; I already have cron if I just want to schedule a task and write my own reporting framework. :) The find binary is substantially smaller than perl, and can start up quicker than a run-time compiled perl script. So I'm not only getting better performance this way, I also maximize the centralization of "how the systems are to be configured" information. That's really the point of using Cfengine to begin with. Though, it's an incredible hassle getting that many files back into Cfengine as a list, given the observed limits of the module protocol. I've actually written a little shell wrapper around find which fits things into a list. It's not included here because I'm still working on my employer to let me contribute stuff like this back to the community, since I'm probably not the only person who's encountered this difficulty... _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine