Runtime runtime = Runtime.getRuntime(); 取得当前运行期对象
String[] args = new String[] {"sh", "-c", execStr};//执行linux下的命令
Process proc = runtime.exec(args); //启动另一个进程来执行命令
String[] args = new String[] {"sh", "-c", execStr};//执行linux下的命令
Process proc = runtime.exec(args); //启动另一个进程来执行命令
Process proc = Runtime.getRuntime().exec(strs);
//System.out.println("proc = " + proc.exitValue());
System.out.println("end");
看我写的哪儿有问题为什么只输出个"end"?