ArbuZz Posted June 11, 2008 Share Posted June 11, 2008 We've placed cron job into cron table like so: * 9 * * * php -q path_to/cron.php in other words we've meant it to run everyday at nine o'clock. Actually it does so, but it generates tens and tens of invoices per run with one minute period. Short excerpt of mail headers just to illustrate the issue: ... 9:03 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:01:01 9:04 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:02:01 9:05 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:03:01 9:06 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:04:01 9:07 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:05:01 9:08 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:06:01 9:09 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:07:02 9:10 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:08:02 9:11 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:09:01 9:12 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:10:01 9:13 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:11:01 9:14 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:12:01 9:15 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:13:02 9:16 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:14:01 9:17 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:15:01 9:18 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:16:01 9:19 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:17:02 9:20 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:18:01 9:21 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:19:02 9:22 AM (1 hour ago) ITDC Billing Notification Cron Job Report for 11-06-2008 09:20:01 ... It is a problem for us. By now we have disabled all mail notifications. And it will be a disaster if we turn them on and the same amount of emails will be sent to our customers. Please, what could be the reason? I guess it is some lamer mistake somewhere that we've made, but we cann't figure it out. Any help appreciated. 0 Quote Link to comment Share on other sites More sharing options...
uberhost Posted June 11, 2008 Share Posted June 11, 2008 You should change the first '*' to a '0' so that it runs just once everyday at 9am. 0 Quote Link to comment Share on other sites More sharing options...
ArbuZz Posted June 13, 2008 Author Share Posted June 13, 2008 That was it. Thank you very much I knew we were lamers. 0 Quote Link to comment Share on other sites More sharing options...
uberhost Posted June 13, 2008 Share Posted June 13, 2008 That was it. Thank you very much I knew we were lamers. Not lamers, lol. Everyone is entitled to make that mistake. Glad to help. 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.