I have create fedex module that complate the order status based on product delivery status and setup with /root/cron.php/.
but i don't know to check cron schedules are working or not. Any manual trick to check the cron are working or not?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
You can add this to cron.sh after the INSTALLDIR variable is set:
# absolute path to magento installation INSTALLDIR=`echo $0 | sed 's/cron\.sh//g'` date >> "$0".log whoami >> "$0".log
And this to cron.php after the dispatchEvent call:
Mage::dispatchEvent('default'); $log = fopen(__FILE__.'.log', 'a'); fwrite($log, date("Y-m-d H:i:s").PHP_EOL); fclose($log);
After 6 minutes you should see both these files in Magento's directory if cron is running.
If you have tried everything and still cant get cron to work, perhaps this unsupported workaround might help. Adding the following to the top of index.php will cause cron to run in the background whenever someone accesses your website.
<?php $pathToCron = dirname(__FILE__)."/cron.sh"; exec( "sh $pathToCron > /dev/null &" );
*/5 * * * * /usr/bin/wget http://your_webpage.com/cron.php
You can check more information here
Hope this helps