Hello everyone.
I have a grav production site on a shared hosting (OVH) that allows limited ssh and cron jobs.
I'd like to enable the grav scheduler for automatic backup (and other tasks).
If I try the command line in ssh, I am not able to launch cron:
(crontab -l; echo "* * * * * cd /home/XXXXXX/www;/usr/local/php8.1/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -
-ovh_ssh: crontab : commande introuvable
This shared hosting allows to add php script, and only php scripts, to crontab : see here in French.
Is it possible to execute the scheduler inside a php script?