Hi! On my server I created a cron.sh file that contains:
#!/bin/bash
php80 artisan schedule:run >> /dev/null 2>&1
echo done
The cron log file correctly returns “done” but the commands defined in registerSchedule were not executed.
public function registerSchedule($schedule)
{
$schedule->command('cache:clear')->everyFiveMinutes();
}
Where is the problem?
I can’t use PHP instead of BASH because the server doesn’t allow using system/passthru/exec/shell functions.
The cron.sh and artisan files are in the same directory.
OC3 / PHP 8.0