From 60b83e3784fc65e8e021636e8abfb70362ea000e Mon Sep 17 00:00:00 2001 From: zaphod-42 Date: Sat, 12 Oct 2013 13:31:29 -0500 Subject: [PATCH] listJobs fix to list all jobs "exec" only returns last line of output, "shell_exec" returns full output. --- crontab.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crontab.php b/crontab.php index 5973602..39e6afe 100644 --- a/crontab.php +++ b/crontab.php @@ -189,7 +189,7 @@ function activate($includeOldJobs = true) { * @return string */ function listJobs() { - return exec($this->crontab.' -l;'); + return shell_exec($this->crontab.' -l;'); } }