|
@@ -215,13 +215,17 @@ public class D00008Service extends D00008BaseModel implements ExecProcessFlow {
|
|
|
public void cpGssExe(String gassDir) throws IOException {
|
|
|
Runtime runtime = Runtime.getRuntime();
|
|
|
Process p =null;
|
|
|
- runtime.exec("cp -f /home/disaster/gas/bin/* "+ gassDir);
|
|
|
+ String shell ="cp -f /home/disaster/gas/bin/* "+ gassDir;
|
|
|
+ System.out.println(shell);
|
|
|
+ runtime.exec(shell);
|
|
|
}
|
|
|
|
|
|
public void cpFile(String file1Path,String file2Path) throws IOException {
|
|
|
Runtime runtime = Runtime.getRuntime();
|
|
|
Process p =null;
|
|
|
- runtime.exec("cp -f "+ file2Path);
|
|
|
+ String shell ="cp -f "+file1Path+" "+ file2Path;
|
|
|
+ System.out.println(shell);
|
|
|
+ runtime.exec(shell);
|
|
|
}
|
|
|
|
|
|
//异步执行
|