Process mProcess =
Runtime.getRuntime().exec(new String[] {Command, arg0[, arg1-n]});
...
try {
mProcess.waitFor();
} catch (Throwable ex) {
}
mProcess.destroy();
-Ursprüngliche Nachricht-
Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch,
Depending on the nature of the of the child process you can
use different Variations of your solution.
That's our solution: (The child process writes lines to stdout)
BufferedReader mInput =
new BufferedReader(new
InputStreamReader(mProcess.getInputStream()));
String mLine;
while
Process mProcess =
Runtime.getRuntime().exec(new String[] {Command, arg0[, arg1-n]});
BufferedReader mInput = new BufferedReader(new
InputStreamReader(mProcess.getInputStream()));
String mLine;
while ((mLine = mInput.readLine()) != null) {
doSomeThingWith(mLine);
// if you wan't to