CCSupport Posted October 21, 2012 Share Posted October 21, 2012 Hello all, I have the CRON job running at 07:00 each day. Config is: php -q /home/[i]username[/i]/public_html/[i]adminfolder[/i]/cron.php * 7 * * * The issue is that from 07:00 for a good while I am receiving many duplicate emails, into the hundreds. I have checked the WHMCS logs and sure enough it is filled with success CRON jobs for about an hour each morning! It looks like it's running it every minute for the hour rather than a single CRON job @ 07:00. It was running fine until I received a number of updates for some PHP files from WHMCS Support, however I cannot be completely sure if this is linked or not. Any ideas what this could be? 0 Quote Link to comment Share on other sites More sharing options...
bear Posted October 21, 2012 Share Posted October 21, 2012 php -q /home/[i]username[/i]/public_html/[i]adminfolder[/i]/cron.php * 7 * * * It looks like it's running it every minute for the hour rather than a single CRON job @ 07:00. Because that's what you set it to do. The first field is "minute", and yours is set to fire for all 60 within the hour of 7, every day/month/weekday. Set that first field to some number between 0 and 59 and that should fix it. 0 Quote Link to comment Share on other sites More sharing options...
CCSupport Posted October 21, 2012 Author Share Posted October 21, 2012 Oh my lord! How backward am I?!! lol. Can't see the forest for the trees!! Many thanks 0 Quote Link to comment Share on other sites More sharing options...
bear Posted October 21, 2012 Share Posted October 21, 2012 No worries, happy to help. You wouldn't be the first to mix up a cron. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.