public ExecutableController(Process process, String... execution) { this(process, null, execution); }
public ExecutableController(Process process, InputStream input, String... execution) {
this.process = process;
this.execution = execution;
this.registry = new OutputStreamRegistry();
if (input != null) this.setInput(input);
new Thread(this.running = new ProcessRunning(), "Running Watcher [" + StringUtil.join(execution, ' ') + "]").start();
new Thread(new ProcessOutput(), "Output Watcher [" + StringUtil.join(execution, ' ') + "]").start();