1private static void GetOutput(final Process process) {
2 new Thread() {
3 public void run() {
4 BufferedReader input = new BufferedReader(new InputStreamReader(process.getInputStream()));
5 String line = null;
6 try {
7 while ((line = input.readLine()) != null) {
8 System.out.println(line);
9 }
10 } catch (IOException e) {
11 e.printStackTrace();
12 }
13 }
14 }.start();
15}