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 ROOTDIR/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

All UNIX systems. x/OPEN Portability Guide 4.0. Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.

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


AVAILABILITY

PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Commands:
mailx


PTC MKS Toolkit 10.4 Documentation Build 39.