LinuxQuestions.org

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

jinics 08-26-2004 12:42 AM

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 06: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 03:47 AM.