Cron job is not running

Avatar
  • Answered
I've tried just about everything to get my cron script to work but am not having any luck. I've been through your mini tutorial several times too! Here's what I'm trying to run... /home/MYUSERNAMER/public_html/DOMAIN/cartbookopencartsync/cronjob/batch-opencart-fa.sh and I've also tried setting it up so that it points directly to the php that the above script attempts to trigger by using your tutorial. Nothing I try works. Can you help? Someone recommend this?... wget -q -O /dev/null http://www.yourdomain.com/cartbookopencartsync/opencart/accounting/sync-opencart-fa.php - Will that work? Thanks inmotion!
Avatar
BradM
Hi macmike78, Sorry to hear our cron setup article didn't help. The first thing I would review is whether the cron is running or not. If it is not running, that's one thing. If it is running however, the script you're executing may not be doing what you want it to do.

Cron Email Alerts

I suggest setting up your cron job to send you an email when it runs. In this way, you can tell if the cron job is at least executing. You can find more information about setting up an automated email when your cron runs here: Why is my cron job not emailing me? Let us know what results you get and we'll start troubleshooting again from there with you. Thanks! - Brad