推荐
String script = "cp xxx xxx"
String[] scriptArr = {"/bin/sh", "-c", script};
Process ps = Runtime.getRuntime().exec(scriptArr);
ps.waitFor();
推荐
String script = "cp xxx xxx"
String[] scriptArr = {"/bin/sh", "-c", script};
Process ps = Runtime.getRuntime().exec(scriptArr);
ps.waitFor();