This week's book giveaway is in the Other Open Source APIs forum. We're giving away four copies of Storm Applied and have Sean Allen, Peter Pathirana & Matthew Jankowski on-line! See this thread for details.
I'm trying to make a program that can gather information about hardware spec in a computer with Linux platform. I have a shell script that can gather that sort of information but i have a problem running it in Java.
My script contains piping (|) and redirection (> symbols and when i tried it in java it didn't work.
If i run
Process cmd_su = Runtime.getRuntime().exec("cat /proc/cpuinfo | grep proc");
After you executed your code did it return any kind of error message, if so it could help others help you if you also mention your error in the next post. On the other hand there might be no "proc" in your file, which I am sure is not the case.