Running the scheduler in UNIX/Linux

To run the scheduler program:

  1. Edit xscheduler.sh file in the directory, dnet by use of any text editor.

e.g. /var/www/cgi-bin/dnet/xscheduler /var/www/cgi-bin/dnet 10

 

Note: The scheduler program should be always running when the server is running. When you shut down the server and start up again, you have to run the program too. To ensure that it is always running, you can use crontab.

 

  1. To run xscheduler.sh using crontab.

> setenv EDITOR vi  

> crontab -e user

You should specify the user who provides HTTP service to user.

e.g. crontab -e nobody

If you want to run xscheduler.sh at 9 o'clok everday, type;

0 9 * * 0,1,2,3,4,5,6 /var/www/cg-bin/dnet/xscheduler.sh

[Parameters]

Input consists of six fields, separated by blanks. The first five give a date and time in the following form:

A minute, expressed as a number from 0 through 59.

An hour, expressed as a number from 0 through 23.

A day of the month, expressed as a number from 1 through 31.

A month of the year, expressed as a number from 1 through 12.

A day of the week, expressed as a number from 0 through 6 (with 0 standing for Sunday).

The sixth field of a crontab entry is a string that your shell executes at the specified time. You should give execute permission to xscheduler.sh.

Hit escape key and type :wq

> ps -ef | grep xscheduler

 

  1. Confirm that no error messages appear on the screen.

In Reminder, see Viewing reminders