Isn't this a little over-complicated? Couldn't one just open up the file
like any other normal file in Java and then read from it? I admit I
haven't tried it myself.

And lo, the chronicles report that Chris Abbey spake thusly unto the masses:
> 
> Do a runtime exec of "cat /proc/meminfo" and attach the process's
> stdout to an io reader of some sort (it's only a stream afterall)
> @see Ljava/lang/Process, Ljava/lang/Runtime for needed methods.
> Just remember that by doing this you have:
> 1. broken platform independence.
> 2. created a requirement that your linux users have the /proc
>  filesystem installed and configured, and have read authority.
> -=Chris

-- 

¤--------------------------------------------------------------------¤
| Aaron Gaudio                   mailto:[EMAIL PROTECTED] |
|                    http://www.rit.edu/~adg1653/                    |
¤--------------------------------------------------------------------¤
|      "The fool finds ignorance all around him.                     |
|          The wise man finds ignorance within."                     |
¤--------------------------------------------------------------------¤

Use of any of my email addresses is subject to the terms found at
http://www.rit.edu/~adg1653/email.shtml. By using any of my addresses, you
agree to be bound by the terms therein.

Reply via email to