calendar(1)
Name
calendar − calendar reminder service
Syntax
calendar [−]
Description
The calendar command consults the file ‘calendar’ in the current directory and prints out lines that contain today’s or tomorrow’s date. The calendar command recognizes most month-day dates, such as Dec. 7, december 7, 12/7, but it does not recognize dates formatted in the following ways: 7 December or 7/12. If you give the month as * with a date, such as, * 1, that day in any month will do. On weekends, specifying tomorrow extends through Monday.
When an argument is present, the calendar command searches through a user’s calendar file in his login directory and sends him any positive results by mail(.). Normally this is done daily under control of cron(.).
The calendar file is first run through the C preprocessor, /lib/cpp, to include any other calendar files specified with the #include syntax. Included calendars are shared by all users, and are maintained and documented by the local administration.
Options
− Functions for every user who has a calendar file in his login directory.
Restrictions
The calendar’s extended idea of tomorrow does not account for holidays.
Files
calendar
/usr/lib/calendar to figure out today’s and tomorrow’s dates
/etc/passwd
/tmp/cal*
/lib/cpp, egrep, sed, mail as subprocesses