[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

System User's Guide: Operating System and Devices


Displaying Reminder Messages (calendar Command)

You can read a file named calendar, which you create in your home directory with the calendar command. The command 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) when it is followed by a / (slash). It interprets */7, for example, as signifying the seventh day of every month.

On Fridays, the calendar command writes all lines containing the dates for Friday, Saturday, Sunday, and Monday. It does not, however, recognize holidays, so it will function as usual and give only the next day's schedule.

A typical calendar file might look like the following:

*/25 - Prepare monthly report
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, then the calendar command displays the following:

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

See the calendar command in the AIX 5L Version 5.1 Commands Reference for the exact syntax.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]