cancel
Showing results for 
Search instead for 
Did you mean: 

Cron setup fails

Cron setup fails

I'm trying to setup my cron by following the instructions listed in the developer documentation. I'm stuck because I always get an error  when I try my first command:

 

* * * * * /Applications/MAMP/bin/php/php7.0.0/bin/php -c /Applications/MAMP/bin/php/php7.0.0/conf/php.ini /Magento-CE-2-2/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /Magento-CE-2-2/var/log/magento.cron.log

 

E486: Pattern not found: Applications

 

I'm new at this so I don't have a clue what to do next?

2 REPLIES

Re: Cron setup fails

Hello Kristof,

 

Everything seems well I have the same problem but my problem was the permission issue. Check it once I have solved this way

  

* * * * * sudo /usr/bin/php -c /etc/php5/apache2/php.ini /home/manish/workspace/magento2/bin/magento cron:run >> /home/manish/workspace/magento2/var/log/magento.cron.log
* * * * * sudo /usr/bin/php -c /etc/php5/apache2/php.ini /home/manish/workspace/magento2/update/cron.php >> /home/manish/workspace/magento2/log/update.cron.log
* * * * * sduo /usr/bin/php -c /etc/php5/apache2/php.ini /home/manish/workspace/magento2/bin/magento setup:cron:run >> /home/manish/workspace/magento2/log/setup.cron.log

 

 

Re: Cron setup fails

Hello,

 

Thanks for your response but when I try to do this I get this screen and nothing happens: 

Schermafbeelding 2016-06-16 om 22.57.24.png

 

If someone knows what I've must do, let me know!