Orlando Andico wrote:
On 1/3/06, Alvin A. Delagon
<[EMAIL PROTECTED]>
wrote:
You
can get the system information by string processing the results of
the grep command. I don't know much on Java though, first find a way to
issue terminal commands on Java, like for example to get the video card
specs you may process the results of "glxinfo | grep vendor". You can
also get the HDD Physical capacity by filtering the results by grep of
the "df" command. ^_^
This is what I find weird. Java is by definition platform-independent.
Any method of fetching system-specific information is going to be by
definition platform-DEPENDENT. So what gives?
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph
Thanks for clearing things up! I failed to add that the solution that I
came up would only be applicable on unix platforms. Being a PHP
developer I came out with that solution since I can issue shell
commands with exec() function. After googling a while, I found that
there's a way to invoke shell commands in Java by Runtime.exec()
function. ^_^
|
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph