LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-26-2004, 12:42 AM   #1
jinics
LQ Newbie
 
Registered: Jan 2004
Posts: 12

Rep: Reputation: 0
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
 
Old 08-26-2004, 06:55 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Optimal Java/C editor and learning resources jrdioko Programming 3 11-09-2005 10:22 AM
System Resources RySk8er30 Mandriva 2 06-23-2005 07:23 PM
System resources... manofwax Linux - Hardware 2 07-23-2004 09:34 PM
How can I output realtime system resources to a label or textarea? JAVA randomx Programming 6 07-15-2004 07:41 PM
konsole system resources? lectraplayer Linux - Newbie 2 02-07-2004 06:14 PM


All times are GMT -5. The time now is 02:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration