LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   java /proc (getting system resources) (https://www.linuxquestions.org/questions/programming-9/java-proc-getting-system-resources-222497/)

jinics 08-25-2004 11:42 PM

java /proc (getting system resources)
 
how can i use java to get system resources of a linux system. I know i have to use the services provided by /proc filesystem in linux.and after getting system resources i can use JNI to use java as frontend(GUI).

can u please share with me any experiences or suggestions u may have?
regards
jinics:Pengy:

Hko 08-26-2004 05:55 AM

You can read the information in /proc just like normal files/directories in any language. You'll have to parse (read and filter out the info you need) the contents of the proc-files/dirs yourself in the program.

See "man proc", and/or search this forum for "/proc" to get more information. And make sure you know how to read files with java of course.


All times are GMT -5. The time now is 11:34 AM.