/** * Reads content from system crontab of the current user. * @throws AccessDeniedException if access to crontab is denied. * @return string */ public function read() { $result = $this->shell->execute($this->getCronCommand() . ' -l'); if ($this->shell->isFailed()) { throw new AccessDeniedException($result, $this->shell->getErrorCode()); } return $this->shell->getOutput(); }