On Tue, 11 Apr 2000, Ed Carp wrote:
> If you want to take the stuff in /proc and present it as XML or HTML in a web
> page is completely up to you - in fact, it's a cool idea. But the data itself
> in /proc shouldn't be in XML or any other sort of specialized format.
Which is why a text method in none of these formats (such as the one
suggested) was proposed.
There is no need to parse the file because you can go directly to the
value you need to get. In other words, simply read
....interfaces/eth0/ip_address directly to use your previos example. The
dump file would be used if you wanted to pull a lot of information out at
once. The program the dumps it can then be told what format to dump it in
according to a command-line option.
-
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:16 EST