When experiencing networking problems on client machines, I\'d like to be able to run a few command lines and email the results of them to myself.
I\'ve found Runtim
Using Runtime.exec gives you a process. You can these use getInputStream to get the stdout of this process, and put this input stream into a String, through a StringBuffer for example.