|
|
|
@ -84,7 +84,13 @@ public class SampleXxlJob { |
|
|
|
|
BufferedReader bufferedReader = null; |
|
|
|
|
try { |
|
|
|
|
// command process
|
|
|
|
|
Process process = Runtime.getRuntime().exec(command); |
|
|
|
|
ProcessBuilder processBuilder = new ProcessBuilder(); |
|
|
|
|
processBuilder.command(command); |
|
|
|
|
processBuilder.redirectErrorStream(true); |
|
|
|
|
|
|
|
|
|
Process process = processBuilder.start(); |
|
|
|
|
//Process process = Runtime.getRuntime().exec(command);
|
|
|
|
|
|
|
|
|
|
BufferedInputStream bufferedInputStream = new BufferedInputStream(process.getInputStream()); |
|
|
|
|
bufferedReader = new BufferedReader(new InputStreamReader(bufferedInputStream)); |
|
|
|
|
|
|
|
|
|