CALENDAR(1,C) AIX Commands Reference CALENDAR(1,C)
-------------------------------------------------------------------------------
calendar
PURPOSE
Writes reminder messages to standard output.
SYNTAX
+-----+
calendar ---| |---|
+- - -+
Warning: See restrictions, Chapter 18, AIX Programming Tools and Interfaces.
DESCRIPTION
The calendar command reads a file named calendar, which you create in your
current (usually home) directory. It writes to standard output any line in the
file that contains today's or tomorrow's date.
The calendar command recognizes date formats such as "Dec. 7" or "12/7". It
also recognizes the special character "*" (asterisk). For example, "*/7" uses
the asterisk to replace the month; the asterisk is used as a wildcard for
month. The calendar command does not recognize formats such as "7/*", "7
December", or "DEC. 7".
For you to get reminder service, your calendar file should have read permission
for others (see "chmod").
Note: The calendar file is read by the C pre-processor. Any C pre-processor
commands can be used in the calendar file. Also, "/*" is the beginning
of a comment for the pre-processor and must end with the "*/"
characters.
All error messages are generated by the C pre-processor.
FLAG
- Calls calendar for everyone having a file calendar in his home directory and
sends reminders by mail
EXAMPLE
To display information in the calendar file that pertains to the next two
business days:
calendar
Processed November 8, 1990 CALENDAR(1,C) 1
CALENDAR(1,C) AIX Commands Reference CALENDAR(1,C)
A typical calendar file might look like this:
Aug. 12 - Fly to Denver
aug 23 - board meeting
Martha out of town - 8/23, 8/24, 8/25
8/24 - Mail car payment
sat aug/25 - beach trip
August 27 - Meet with Simmons
August 28 - Meet with Wilson
If today is Friday, August 24, the calendar command displays:
*/25 - Prepare monthly report
Martha out of town - 8/23, 8/24, 8/25
8/24 - Mail car payment
sat aug/25 - beach trip
August 27 - Meet with Simmons
FILES
$HOME/calendar
/usr/lib/calprog The program that determines dates.
/etc/passwd Used to identify users.
/tmp/cal* Temporary files.
RELATED INFORMATION
See the following commands: "chmod," "mail, Mail," and "cpp."
Processed November 8, 1990 CALENDAR(1,C) 2