Operating System Tutorial
Chapter 8, Power tools

Remembering your appointments

Remembering your appointments

You can use the calendar reminder service to send yourself mail reminders about upcoming appointments. The calendar program looks for a file called calendar in your home directory and then mails you the lines containing today's or tomorrow's date.

To use calendar, create a file called calendar in your home directory. Put each appointment on a single line containing the date of the appointment in US (month-day) format. For example:

   $ cd 
   $ cat > calendar
   7/4 Dave and Peter start work
   7/5 UNIX Beta Committee meeting, 10 am
   7/7 Meet Vip at the airport
   <Ctrl>D
Then, to guarantee that the calendar program reads your calendar file each time you log in, add the following line to the end of your .profile (C shell users: add this line to your .login):
   /usr/bin/calendar
For more information on customizing your .profile or .login see ``Your environment'' and Appendix D, ``Sample shell startup files'' in the Operating System User's Guide.