> -----Original Message----- > From: Darrell May [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 11, 2001 1:29 PM > Subject: RE: [e-smith-devinfo] Re: Comments in generated config
> > /sbin/e-smith/modify-template templatepath > > Just so I understand, templatepath would be the actual file > name right? Yes, as in your example: ./modify-template /etc/smb.conf So the path is the final location of the configuration file, or relative to /etc/e-smith/templates if you prefer to think of it that way. The fragmentname would be just that. For example: ./modify-template -f 10globals /etc/smb.conf Or, and I somewhat prefer this syntax: ./modify-template /etc/smb.conf:10globals Or to make the perlites fall in love: ./modify-template /etc/smb.conf::10globals :-) > I think this is a great idea Scott. thanks > The perl script could even start with a menu. > > Modify Template Options: > > V - View template output > D - Display with comments and fragment names visable > E - Edit fragment > A - Add fragment > S - Search template > L - Load changes I think if you want to make a fully menu driven mode, the first task should be to select a template (configuration file), and then provide the options above which are relative to a specific template. Also, the selection of templates might include the search option as well, in order to present a list of templates containing specified string in any fragment. Since we're dreaming here, another useful option might be tacked onto the "Load changes" option you suggest. I'm assuming load changes would perform an expand-template. Sometimes that is enough, but often what is really needed is a signal-event. If there were a database that listed templates and the events (or actions?) that should be executed whenever the template is updated, then load changes would be truly effective. Otherwise, I think expand-template is not enough. > So who's the perl wizard that will create this? Not my forte yet, unfortunately. I'm groping my way through perl, but am nowhere near being able to do such a thing in any kind of reasonable timeframe. Though it would be a good learning project ;-) I'm sure the good folks at Mitel are quite capable, but I think they have their hands full with other tasks at the moment. Volunteers? Scott -- Please report bugs to [EMAIL PROTECTED] Please mail [EMAIL PROTECTED] (only) to discuss security issues Support for registered customers and partners to [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org
