here is what i am trying to do...
i have a class to run system commands which extending the Thread class.
inside this class, a method called getOutput() that should return a string with the result.
the commands run successfully with no problems. all i want to do is to get the output stream in a string...
Thread t1 = new Command();
t1.getOutput(); // --> Not working of course because it is not a method of the thread class
Q: is that possible to do in another way... giving that the class extends Thread
Thanks