0

I am using windows server 2003.

I set a cron job, open IE explorer and run cron.php file.

Basically, what the cron.php does is just send email to my own email address. I set it run every 2 minutes and run for 2 hours. I start the cron services, and I received the first email, but after that, I waited few hours, I am still didn't receive the second email. Anyone can help me?

  • How did you set it up to run every 2 minutes? – Dominic Rodger Oct 20 '09 at 11:03
  • A cron job, that does not run every x minutes? Maybe something is wrong configured and the job ends after one repetition. I was never confronted with this kind of problem. – Julius F Oct 20 '09 at 11:05
  • @Silentghost, sure? Doesn't CronJob belong to serverfault due to the fact it is linked to administration? – Julius F Oct 20 '09 at 11:09
  • @Dominic: There is an advanced button, i click on that, and set it run every 2 minutes, and in the desciprtion itself, it shows: Schedule: every 2 minutes from bla bla bla... – flashnewbie Oct 20 '09 at 11:09
  • @SilentGhost: I was hesitated, where should I post this question, and I dont want to post 2 places with same question. – flashnewbie Oct 20 '09 at 11:10
  • @daemonfire: i follow this: http://drupal.org/node/31506 – flashnewbie Oct 20 '09 at 11:11
  • @flashnewbie,I assumed you use a unix system, sorry, I could not help you with windows – Julius F Oct 21 '09 at 13:29
  • Is this - by any chance - a duplicate of http://stackoverflow.com/questions/1587878/php-send-email-via-cronjob-and-set-amount-of-email-send-per-mins? – ty812 Oct 21 '09 at 13:34

1 Answers1

1

It's probably due to the fact that CRON doesn't run on WINDOWS unless you install a CRON for Windows like CRONw or such like programs. If that's not an option I think you would need to set up your script to use Scheduled Tasks and follow something like this.

Hope this helps

Community
  • 1
  • 1
Phill Pafford
  • 77,927
  • 86
  • 256
  • 378