Jump to content

setting up cron jobs on windows server 2003


rjcuser

Recommended Posts

Hi

 

Does anyone have the definitive instructions for setting up the two cron jobs; automation settings and mail piping, as scheduled tasks on a windows 2003 server?

 

I have found bits in the forum, but nothing that seems to be exactly what to do.... I have found wget and nncron, so if these were a better solution, then instructions for one of these would also be helpful...

 

Thanks in advance

 

Cheers

Richard

Link to comment
Share on other sites

To setup a Windows machine to run cron.php at a specific time follow the specific instructions below.

 

Creating a Scheduled Task

 

1. Open Scheduler

2. Go to Start > Programs > Accessories > System Tools > Scheduled Tasks

3. Double-click Add Scheduled Task

4. The Scheduled Task Wizard will appear. Click Next.

5. Select the program to run. Choose your browser from the list (for example, Internet Explorer or Mozilla Firefox). Click Next.

6. Give the task a Name, such as Drupal Cron Job, and choose the Frequency with which to perform the task (for example, Daily)). Click Next.

7. Choose specific date and time options (this step will vary, depending on the option selected in the previous step). When finished, click Next.

8. Enter your password if prompted. Change the username if required (for example, you'd like the task to run under a user with fewer privileges security reasons). Click Next.

9. On the final page, select the checkbox Open advanced properties for this task when I click Finish and click Finish.

 

Configuring the task

 

1. Go to the task's setting page either by checking the checkbox at the end of the last step, or by double-clicking on the task.

2. In the Run box, after the text that is there now (for example, C:\PROGRA~1\MOZILL~1\firefox.exe), enter a space and then type the address to your website's cron.php page in double quotations (for example, C:\PROGRA~1\MOZILL~1\firefox.exe http://www.example.com/cron.php

3. To set a frequency more often than Daily (for example, hourly), click the Schedule tab, then click Advanced. Here you can set options such as Repeat task, every 1 hour for 23 hours. Click Ok when finished.

4. Change the start time on the task to one minute from the current time. This will allow you to test the task and make sure that it is working.

5. When all settings have been configured to your liking, click Apply and OK (note: you may be prompted for your password)

 

 

Hope this will help...

Link to comment
Share on other sites

Thanks...

 

2. In the Run box, after the text that is there now (for example, C:\PROGRA~1\MOZILL~1\firefox.exe), enter a space and then type the address to your website's cron.php page in double quotations (for example, C:\PROGRA~1\MOZILL~1\firefox.exe http://www.example.com/cron.php

 

You say in double quotations, but then the example doesn't have them? Which is correct, or am I misunderstanding?

 

Cheers

Richard

Link to comment
Share on other sites

Thanks...

 

2. In the Run box, after the text that is there now (for example, C:\PROGRA~1\MOZILL~1\firefox.exe), enter a space and then type the address to your website's cron.php page in double quotations (for example, C:\PROGRA~1\MOZILL~1\firefox.exe http://www.example.com/cron.php

 

You say in double quotations, but then the example doesn't have them? Which is correct, or am I misunderstanding?

 

Cheers

Richard

Also, is this the correct path for the mail pop3 piping?

 

http://www.domain.com/clients/pipe/pop.php

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...
  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated