2024-10-14 12:14:01 +03:00
|
|
|
package _VisualDVM.Passes.All;
|
2024-10-09 22:01:19 +03:00
|
|
|
import _VisualDVM.Utils;
|
2024-10-14 12:14:01 +03:00
|
|
|
import _VisualDVM.Passes.ProcessPass;
|
2023-09-17 22:13:42 +03:00
|
|
|
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));
|
|
|
|
|
}
|
|
|
|
|
}
|