Files
VisualSapfor/src/Visual_DVM_2021/Passes/All/LocalSingleCommand.java

16 lines
481 B
Java

package Visual_DVM_2021.Passes.All;
import Common_old.Utils.Utils;
import Visual_DVM_2021.Passes.ProcessPass;
public class LocalSingleCommand extends ProcessPass<String> {
String command = "";
@Override
protected boolean canStart(Object... args) throws Exception {
command = (String) args[0];
return true;
}
@Override
protected void body() throws Exception {
target = Utils.readAllOutput(Runtime.getRuntime().exec(command));
}
}