diff --git a/system/blueprints/config/scheduler.yaml b/system/blueprints/config/scheduler.yaml index c145045c7..caa771167 100644 --- a/system/blueprints/config/scheduler.yaml +++ b/system/blueprints/config/scheduler.yaml @@ -39,12 +39,13 @@ form: .command: type: text label: PLUGIN_ADMIN.COMMAND - placeholder: 'cd ~;ls -lah;' + placeholder: 'ls' validate: required: true .args: type: text label: PLUGIN_ADMIN.EXTRA_ARGUMENTS + placeholder: '-lah' .at: type: cron label: PLUGIN_ADMIN.SCHEDULER_RUNAT diff --git a/system/src/Grav/Common/Scheduler/Scheduler.php b/system/src/Grav/Common/Scheduler/Scheduler.php index df5602ea1..2dc78321e 100644 --- a/system/src/Grav/Common/Scheduler/Scheduler.php +++ b/system/src/Grav/Common/Scheduler/Scheduler.php @@ -246,7 +246,7 @@ class Scheduler */ public function isCrontabSetup() { - $process = new Process('crontab -l'); + $process = new Process(['crontab', '-l']); $process->run(); if ($process->isSuccessful()) {