CALENDAR(1) COMMAND REFERENCE CALENDAR(1)
NAME
calendar - reminder service
SYNOPSIS
calendar [ -v ] [ - ]
DESCRIPTION
Calendar consults the file Calendar or calendar in the
current directory and prints out lines that contain today's
or tomorrow's date anywhere in the line. If the public
calendar file (/usr/lib/public.calendar) exists, calendar
checks this file in addition to the personal calendar files.
Most reasonable month-day dates, such as Dec. 7, december 7,
12/7, etc., are recognized, but not 7 December or 7/12. On
weekends tomorrow extends through Monday.
If you give the month as ``*'' with a date (for example,
``* 1'') that day in any month will do. Lines that begin
with the word everyday (or Everyday) are considered constant
reminders and are always printed by calendar.
When the - argument is present, calendar mails reminders to
all users who have a file calendar or Calendar in their
login directory if either the personal or public calendar
file contains entries for today or tomorrow. Normally this
is done daily in the wee hours under control of cron (8).
The file calendar is first run through the C preprocessor,
/lib/cpp, to include any other calendar files specified with
the usual #include syntax.
OPTIONS
-v Verbose. Calendar prints messages telling you what it is
doing.
EXAMPLES
This is an example of a calendar file:
Feb 14 Valentines Day
12/31 David's birthday
* 1 The first day of the month
Everyday print this constant reminder
If calendar were executed on December 31 with the above data
in the calendar file, the second, third, and fourth entries
in the file would be printed.
Printed 10/17/86 1
CALENDAR(1) COMMAND REFERENCE CALENDAR(1)
FILES
Calendar Alternate name for user's calendar
file
calendar The user's calendar file
/etc/passwd Used to find logins and home
directories for all users
/tmp/cal* File for collecting calendar data
/usr/lib/public.calendar Public calendar
RETURN VALUE
[0] The exit code is always 0.
CAVEATS
Calendar's extended idea of `tomorrow' doesn't account for
holidays.
The program uses the programs /lib/cpp, /usr/lib/calendar,
egrep(1), sed(1), and mail(1mh) to do the job, so changes to
these may affect calendar.
Executing calendar with the dash (-) option will cause mail
to be sent to all users with calendar files. It is
recommended that this option only be used by cron.
SEE ALSO
at(1), egrep(1), mail(1mh), sed(1), cron(8).
Printed 10/17/86 2
%%index%%
na:72,63;
sy:135,151;
de:286,1853;
op:2139,193;
ex:2332,480;
fi:2956,525;
rv:3481,127;
ca:3608,689;
se:4297,173;
%%index%%000000000146