String strExec = "irgendwas";Process process = Runtime.getRuntime().exec(strExec);InputStream is = process.getInputStream();byte[] b = new b[1024];//Zum Beispielwhile(is.available()>0){ is.read(b);}