Re: Suggested dual human/binary interface for proc/devfs

From: Ed Carp (erc@pobox.com)
Date: Tue Apr 11 2000 - 02:47:17 EST


George Bonser (grep@shorelink.com) writes:

> > device=eth0;ip_address=192.168.201.116,netmask=255.255.255.0
> >
> > for example, is a LOT easier for a script to parse and use. Add a little whitespace and it's a lot easier for humans to parse, too.
> >
> > Why are people so damned insistent on making this thing as hard as
> > possible to do? Is it sexier or something to make it difficult?
>
> Because your method becomes more difficult when you have more than one
> device.
>
> device=eth0;ip_address=192.168.201.116,netmask=255.255.255.0
> what do you put here when you want eth1?--------------------^

Uh, I would've thought that would've been intuitively obvious ;)

device=eth0;ip_address=192.168.201.116,netmask=255.255.255.0
device=eth1;ip_address=192.168.201.117,netmask=255.255.255.0

As for "there's already lots of code to parse this", where? For what language? If I can't parse your pseudo-SNMP format with a shell script, it's useless -- and it completely defeats the purpose of /proc.

If you want to impose SNMP on the kernel, do it in your own user space FS. But don't make the rest of us suffer through it, huh?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:15 EST