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
At 05:06 PM 2/2/99 -0800, Juan Carlos wrote:
>Hi,
>
>How can I read the files of /proc directory with JDK? The information
>of these files is generated with the cat option. (EX: cat
>/proc/meminfo). It information donīt is fixed in these files.
>
>Thanks for your attention.
>
>J.C.
<*> cabbey at rconnect dot com http://homepage.rconnect.com/cabbey/ <*>
Get it up, keep it up... LINUX: Viagra for the PC. ;) PGP Info: pgp.html
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12 http://www.geekcode.com
GCS$/IT/PA$ d(-) s++:+ a-- C+++$ UL++++ UA++$ P++ L++ E- W++ N+ o? K? !P
w---(+)$ O- M-- V-- Y+ PGP+ t--- 5++ X+ R tv b+ DI+++ D G e++ h(+) r@ y?
------END GEEK CODE BLOCK------