Natanael Copa wrote:
> On Sun, 2007-10-28 at 06:46 +0000, Steve Long wrote:
> 
>> Failing that, a plaintext config file along the lines discussed in [1]
>> would be cool. awk could parse it pretty quickly.
>> 
>> [1] http://modeemi.fi/~tuomov/b//archives/2007/01/20/T11_58_29/
> 
> Something like Debian's /etc/network/interfaces?
> 
> http://www.fifi.org/cgi-bin/man2html/usr/share/man/man5/interfaces.5.gz
>
Looks good to me :D Nice and simple to parse.

> Why re-invent yet another format when there already are many out there,
> well tested over years.
> 
I totally agree.
Bug me (igli) in #friendly-coders if you're on IRC and I'll help with it;
but I'm not a network guy, so someone else will have to lead the work (i'm
not that motivated basically, but it looks like an easy job-- there's
always existing code fall back on, much as it pains me to read it ;) QA
would need to be sorted too. *shrug*

I'd do the function too, though, since it matches existing configs and you'd
probably end up calling it (or a variant) in any case.

Not sure how the mapping thing would fit into it (not my bailiwick) but the
existing stuff I've seen so far can all be done with the function call. If
I'm wrong I'm sure someone will correct me (gently, I hope ;)


-- 
[EMAIL PROTECTED] mailing list

Reply via email to