Installing
Edit xscheduler.sh file in the directory, dnet by use of any text editor.
Specify the paths which meet your environment.
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.
To run xscheduler.sh using crontab.
Set an editor
> setenv EDITOR vi
Open crontab
> crontab -e user
You should specify the user who provides HTTP service to user.
e.g. crontab -e nobody
Edit crontab
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.
Quit
Hit escape key and type :wq
To confirm xscheduler was run.
> ps -ef | grep xscheduler
Confirm that no error messages appear on the screen.
In Reminder, see Viewing reminders