/** * {@inheritdoc} */ public function open() { $command = $this->command->toString(); $this->getOutput()->write("[+] New process with command: " . $command); // Command options $in = array_values($this->command->getOption('in', array('pipe', 'r'))); $out = array_values($this->command->getOption('out', array('file', '/tmp/nyx.log', 'a'))); $err = array_values($this->command->getOption('err', array('file', '/tmp/nyx-error.log', 'a'))); $this->process = proc_open($command, array(0 => $in, 1 => $out, 2 => $err), $pipes); }