Using checkalarm
checkalarm checks each Wcal event with alarm and verifies if
an alarm must be launched for the event. An alarm is
launched when current time is greater than the beginning of
event minus alarm duration. When an alarm must be
launched, a mail is sent to people who are concerned by the
event.
-c, --calendar user
Specify which calendar is checked by checkalarm. user must
correspond to the name used in wcal.conf file to define the
calendar. all means that all calendars will be checked.
-m, --mail address
Specify the address used by checkalarm to prevent people.
address will orverride any remote mail parameter set in
wcal.conf file (see Configuring Wcal).
-v, --verbose
Verbose mode (html output from Wcal on alarm check).
For example:
checkalarm -c all -mail me@my.org -v
checkalarm in the crontab
checkalarm is independent
from wcald.
In fact, it acts just like a simple index.cgi client
that sends a special request to wcald.
checkalarm must be executed regularily to insure that alarms are lauched at the right moment.
The best way to do that is to put checkalarm in the crontab.
It doesn't matter which user crontab is modified but you'd rather use the wcal user crontab:
> su - wcal
> crontab -e
For example if you want to check alarm every 15 minutes, you can add the line to the crontab:
0,15,30,45 * * * * /usr/local/sbin/checkalarm -c all
For more information about crontab:
> man crontab
Back to the Wcal main page