Im trying to set a magento cron by doing the follow:
crontab -u magento2 -e
After that i press i for insert the tekst:
- /usr/local/bin/php /home/magento2/public_html/magento2 cron:run | grep -v "Ran jobs by schedule" >> /home/magento2/public_html/magento2/var/log/magento.cron.log
- /usr/local/bin/php /home/magento2/public_html/magento2/update/cron.php >> /home/magento2/public_html/magento2/var/log/update.cron.log
- /usr/local/bin/php /home/magento2/public_html/magento2/bin/magento setup:cron:run >> /home/magento2/public_html/magento2/var/log/setup.cron.log
After that i press escape and type :x! to save the file.
Then the following msg appears:
"tmp/crontab.zchprf"3L, 46rC written crontab: installing new crontab "tmp/crontab.zchprf":1: bad day-of-week errors in crontab file, can't install
Thanks for the help