protected function execute($cmd = '', $blockRedundancy = true) { if (empty($cmd)) { $cmd = $this->cmdFile; } if ($this->isCli() == true) { if ($this->isRunning() && $blockRedundancy) { throw new Exception("이미 실행중인 커맨드 입니다."); } $this->makePidFile(); Router::callClassByUri(Router::getUri($cmd)); } else { throw new Exception("커맨드 실행만 가능합니다."); } }