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

From: George Bonser (grep@shorelink.com)
Date: Tue Apr 11 2000 - 03:41:31 EST


On Tue, 11 Apr 2000, [iso-8859-1] Ragnar Kjørstad wrote:

> How about just ignoring the problem for the /proc interface? Non of the
> suggested solutions would work well for simple shell-scripts anyway.

That is completely missing the point. A shell scripter would never be
EXPECTED to directly parse that format! You would do:

procdump --shell | my_parser

The whole point is not to make a format that is easily parsable by any
particular method but to make a format that can be fed to a "pre-parser",
if you will, that converts the format to any number of different formats.

The key is having a standard root format so that a standard dump program
can be built to spew output for HTML parsers, XML parsers, shell script
parsers, etc., and yet STILL BE READABLE if dumped directly to the screen.

-
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