diff --git a/runnow.php b/runnow.php index 85d9c3d..89e53c8 100644 --- a/runnow.php +++ b/runnow.php @@ -53,7 +53,7 @@ if (filter_var($jobnameResult[0]["url"], FILTER_VALIDATE_URL)) { if($jobnameResult[0]["url"] != "reboot") { $body = ''; $statuscode = 0; - exec($jobnameResult[0]["url"], $body, $statuscode); + exec($jobnameResult[0]["url"] . " 2>&1", $body, $statuscode); $body = implode("\n", $body); $timestamp = time(); } else { diff --git a/webcron.php b/webcron.php index ba5f4ac..63b296e 100644 --- a/webcron.php +++ b/webcron.php @@ -81,7 +81,7 @@ foreach ($results as $result) { if($result["url"] != "reboot") { $body = ''; $statuscode = 0; - exec($result["url"], $body, $statuscode); + exec($result["url"] . " 2>&1", $body, $statuscode); $body = implode("\n", $body); } else { if (!file_exists('cache/get-services.trigger')) {