public function flush(
        $command,
        array $streams,
        array &$pipes = [],
        $cwd = null,
        array $env = null,
        array $options = []
    ) {
        $process = proc_open($command, $streams, $pipes, $cwd, $env, $options);
        if (!is_resource($process)) {
            throw new \RuntimeException('Error to open the process');
        }
        return proc_close($process);
    }
public function flush(
        $command,
        array $streams,
        array &$pipes = [],
        $cwd = null,
        array $env = null,
        array $options = []
    ) {
        $process = proc_open($command, $streams, $pipes, $cwd, $env, $options);
        if (!is_resource($process)) {
            throw new \RuntimeException('Error to open the process');
        }
        return proc_close($process);
    }
public function flush ( $ command , array $ streams , array & $ pipes = [ ] , $ cwd = null , array $ env = null , array $ options = [ ] ) { $ process = proc_open ( $ command , $ streams , $ pipes , $ cwd , $ env , $ options ) ; if ( ! is_resource ( $ process ) ) { throw new \ RuntimeException ( 'Error to open the process' ) ; } return proc_close ( $ process ) ; }
Links the command with the current STD streams.

@param string $command
@param array $streams
@param array $pipes
@param string $cwd
@param array $env
@param array $options
@return int
Links the command with the current STD streams .