src/GameOfLife/Utils/Shell/ShellExecutor.php
/**
     * Executes a command and optionally hides the output from the user.
     *
     * @param String $_command The command
     * @param bool $_hideOutput Indicates whether the output will be hidden or not
     *
     * @return int The return code of the command
     */
Executes a command and optionally hides the output from the user.
@param String $_command The command
@param bool $_hideOutput Indicates whether the output will be hidden or not

@return int The return code of the command
Executes a command and optionally hides the output from the user . @param String $_command The command @param bool $_hideOutput Indicates whether the output will be hidden or not @return int The return code of the command
public function executeCommand(String $_command, Bool $_hideOutput = false)
    {
        $returnValue = 0;
        $this->output = array();
        if ($_hideOutput) $_command .= " 2>" . $this->getOutputHideRedirect();
        exec($_command, $this->output, $returnValue);
        return $returnValue;
    }
public function executeCommand ( String $ _command , Bool $ _hideOutput = false ) { $ returnValue = 0 ; $ this -> output = array ( ) ; if ( $ _hideOutput ) $ _command .= "  2> " . $ this -> getOutputHideRedirect ( ) ; exec ( $ _command , $ this -> output , $ returnValue ) ; return $ returnValue ; }
Executes a command and optionally hides the output from the user.
Executes a command and optionally hides the output from the user .