I'm really struggling with the below cron job and any help would be appreciated. I'm running Magento and I'm trying to run cron.php every minute through a cron job. I now understand that you should use cron.sh which I've also tested below.
I can log into SSH and run any of the following commands and they all work as they should, forgot password emails sent / new products created from an import etc:
/usr/bin/sh /home/thefootb/public_html/cron.sh cron.php --mode=always /usr/bin/sh /home/thefootb/public_html/cron.sh cron.php --mode=default /usr/bin/php /home/thefootb/public_html/cron.php
But when I but these into a cron job (logging into SSH and using crontab -e) nothing happens. Here's my crontab file:
SHELL="/bin/bash" * * * * * /usr/bin/sh /home/thefootb/public_html/cron.sh cron.php --mode=always * * * * * /usr/bin/sh /home/thefootb/public_html/cron.sh cron.php --mode=default * * * * * /usr/bin/php /home/thefootb/public_html/cron.php
I've also tried:
* * * * * /usr/local/bin/php /home/thefootb/public_html/cron.php
As I this is what my host advised me.
I'm really stuck with this - it should be so simple but it just won't work.
Thanks in advance Chris