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
The month name may be abbreviated to three letters; the case is not significant; the month can be given numerically.
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.
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
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.
Possible exit status values are:
Failure due to any of the following:
All UNIX systems. x/OPEN Portability Guide 4.0. Windows Server 2012. Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019.
The MAILER environment variable is an extension to traditional implementations of calendar.
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
PTC MKS Toolkit 10.3 Documentation Build 39.