Commit 7050d9d9 by guo_minglei@163.com

补批代码修改

parent 868e12ee
......@@ -20,7 +20,7 @@ public class Test {
Thread thread = new Thread(() -> {
List<String> cmdList = Arrays.asList("python D:\\2020project\\byit-myth-job\\byit-myth-core\\myth-executor-core\\src\\test\\java\\com\\test\\test-ex.py".split(" "));;
MythJobProcess mythJobProcess = new MythJobProcess(cmdList, null, null, 0,"");
MythJobProcess mythJobProcess = new MythJobProcess(cmdList, null, null, 0,"", null);
list.add(mythJobProcess);
String log = mythJobProcess.call();
System.out.println("运行日志" + log+"--");
......
......@@ -18,9 +18,9 @@ public class Test2 {
Thread thread = new Thread(() -> {
Runtime runtime = Runtime.getRuntime();
try {
Process exec = runtime.exec("python D:\\workspace\\pycharmWorkSpace\\test\\com.test\\Test.py");
Process exec = runtime.exec("python D:\\workSpace\\python\\test\\test1.py");
processList.add(exec);
BufferedReader br = new BufferedReader(new InputStreamReader(exec.getInputStream()));
BufferedReader br = new BufferedReader(new InputStreamReader(exec.getInputStream(), "GB2312"));
String res = null;
while ((res = br.readLine()) != null){
System.out.println(res);
......
......@@ -4,4 +4,5 @@ i = 0
while i<100:
time.sleep(1)
print("-----百花凰冠${name}---%d" %i)
i+=1
\ No newline at end of file
i+=1
print("哈哈哈哈")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment