calendar

appointment reminder system

Command


SYNOPSIS

calendar [-]


DESCRIPTION

With no options, calendar displays all current appointments on the standard output. calendar searches the file calendar in the current directory, looking for lines that match either today's or tomorrow's date. On Friday, Saturday, or Sunday, tomorrow extends through to Monday. Each appointment must fit on a single line, with the date formatted as one of:
January 27
1/27
jan 27
Note:

The month name may be abbreviated to three letters; the case is not significant; the month can be given numerically.

Options

-

searches for a calendar file in each home directory found in the user database. calendar sends mail to the corresponding user for any appointments that are found to be current. Mail is sent using the mailx utility or, alternatively, the utility named in the MAILER environment variable.


EXAMPLE

If today is Friday April 7th, and the following calendar file is found in the current directory:
tue mar 7	1:00 pm	dentist
Sat April 8	Trip to the zoo
mon april 10	3:30 pm job interview
4/11		vacation starts
calendar displays the following:
Sat April 8	Trip to the zoo
mon april 10	3:30 pm job interview

ENVIRONMENT VARIABLES

MAILER

contains the name of the utility that calendar uses to send mail. If this variable is not set, calendar uses /bin/mail as the default mail utility.


FILES

calendar

file used in the current directory, or user's home directory.


DIAGNOSTICS

Possible exit status values are:
0

Successful completion.

1

Failure due to any of the following:

— an invalid command line argument
— inability to open the calendar file


PORTABILITY

x/OPEN Portability Guide 4.0.

The MAILER environment variable is an extension to traditional implementations of calendar.


SEE ALSO

Commands:
mailx


Updated MKS Toolkit [3khat16.ico]HP3000 [3khat16.ico]3kMail [archive16.gif]