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?
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 04:33 PM.|