Denali/Mt. McKinley and Brown Bear Software logo
Calcium Documentation - SendReminders via Windows Scheduler
Horizontal Line

You can run the SendReminders script via the Windows Scheduler; this is recommended, as it can be set to run automatically at whatever times or intervals you like. Also, it will continue working even if the machine is rebooted. It's much simpler then trying to run it as a Windows service.

To set up the Calcium 'SendReminders' script in the Windows Scheduler

  1. Open the Windows Scheduler:
    Control Panel → Scheduled Tasks
    - or -
    Start Menu → Programs → Accessories → System Tools → Scheduled Tasks
  2. Double-click Add a scheduled task.
  3. Click Browse, and find \perl\bin\perl.exe
  4. Enter a name for the task, e.g. "Calcium SendReminders"
  5. Specify how frequently to run it; select "Daily". (A bit later you'll change it to run every N minutes.)
  6. Enter a time for the first run of every day, say, 12:05am, select "Every Day", and a start date of today.
  7. Enter the username/password for the IUSR_[machinename] user, i.e. the user that IIS runs CGI scripts as. (Or, you can specify any user, as long as that user has permission to access the calendar data files.)
  8. Select the "Open Advanced Properties" checkbox, and click "Finish".
  9. In the "Properties" dialog on the "Task" pane, edit the "Run" program, adding the full path to the "SendReminders" script after 'perl.exe', e.g. it should look something like:
          \perl\bin\perl.exe "\InetPub\wwwroot\cgi-bin\CalciumDir310\SendReminders"
    
    (Use double-quotes around the path so you don't need to use the special Windows "~" style names for names longer then 8 characters.)
  10. Click the "Schedule" tab to get to the Schedule pane, and click the "Advanced" button. Then, click "Repeat Task", and set the frequency to "Every 10 Minutes" (or 15, or whatever you like), and the "Until" time to 11:5pm (or the "Until" duration to 23 hours and 59 minutes.)
  11. That's it - save the various dialogs, and you're done.
Testing It

In the list of Scheduled Tasks, right-click the SendReminders item, and select "Run". Then, go check the 'reminders' data file to see if it worked; that file is in the 'data\Master' folder inside your Calcium installation. It's a plain ASCII file; the first two lines look something like this:

# LastSubscriptionRun 1110203100 (Mon Mar  7 08:45:00 2005)
# LastProcessed 1110231900 23615 (Mon Mar  7 16:45:00 2005)
If the 2nd line ("LastProcessed") lists the time you tried running SendReminders...then it works. If that time is not current, something went wrong; try running the script from a command prompt to see any error messages. (I.e. run the same command that's listed in the "Run" field of the scheduled task.)

Note: if you get errors, please see the note about speciying the path at the bottom of the main Email Reminder Process info page.