finished part 1
This commit is contained in:
parent
089b6a04d0
commit
db4cdcca54
Binary file not shown.
Binary file not shown.
@ -9,6 +9,8 @@ public class AProcess {
|
|||||||
|
|
||||||
// args is the command
|
// args is the command
|
||||||
ProcessBuilder pb = new ProcessBuilder(args);
|
ProcessBuilder pb = new ProcessBuilder(args);
|
||||||
|
|
||||||
|
try {
|
||||||
Process process = pb.start();
|
Process process = pb.start();
|
||||||
|
|
||||||
// obtain the input and output streams
|
// obtain the input and output streams
|
||||||
@ -21,5 +23,12 @@ public class AProcess {
|
|||||||
System.out.println(line);
|
System.out.println(line);
|
||||||
|
|
||||||
br.close();
|
br.close();
|
||||||
|
|
||||||
|
|
||||||
|
} catch (IOException e) {
|
||||||
|
System.out.println(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user