cron task throws /bin/sh: 1: *: not found

I have two cron tasks running on my Symfony project and the first one is running correctly but in second, log file writes and error:

/bin/sh: 1: *: not found

and I don’t know what can be cause of problem..

* * * * *  /usr/local/bin/php /var/www/html/bin/console app:check-status >> /var/www/html/var/log/post.errors.cron.log 2>&1; 
* * * * *  /usr/local/bin/php /var/www/html/bin/console app:save-status >> /var/www/html/var/log/user.report.cron.log 2>&1

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *