Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ calendar(1) — UTek 3.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

at(1)

egrep(1)

mail(1mh)

sed(1)

cron(8)



CALENDAR(1)             COMMAND REFERENCE             CALENDAR(1)



NAME
     calendar - reminder service

SYNOPSIS
     calendar [ -v ] [ - ]

DESCRIPTION
     Calendar consults the file Calendar or calendar in the
     current directory and prints out lines that contain today's
     or tomorrow's date anywhere in the line.  If the public
     calendar file (/usr/lib/public.calendar) exists, calendar
     checks this file in addition to the personal calendar files.

     Most reasonable month-day dates, such as Dec. 7, december 7,
     12/7, etc., are recognized, but not 7 December or 7/12.  On
     weekends tomorrow extends through Monday.

     If you give the month as ``*'' with a date (for example,
     ``* 1'') that day in any month will do.  Lines that begin
     with the word everyday (or Everyday) are considered constant
     reminders and are always printed by calendar.

     When the - argument is present, calendar mails reminders to
     all users who have a file calendar or Calendar in their
     login directory if either the personal or public calendar
     file contains entries for today or tomorrow.  Normally this
     is done daily in the wee hours under control of cron (8).

     The file calendar is first run through the C preprocessor,
     /lib/cpp, to include any other calendar files specified with
     the usual #include syntax.

OPTIONS
     -v Verbose. Calendar prints messages telling you what it is
        doing.

EXAMPLES
     This is an example of a calendar file:

          Feb 14 Valentines Day
          12/31  David's birthday
          * 1    The first day of the month
          Everyday print this constant reminder

     If calendar were executed on December 31 with the above data
     in the calendar file, the second, third, and fourth entries
     in the file would be printed.

FILES
     Calendar          Alternate name for user's calendar file

     calendar          The user's calendar file



Printed 5/12/88                                                 1





CALENDAR(1)             COMMAND REFERENCE             CALENDAR(1)



     /etc/passwd       Used to find logins and home directories
                       for all users

     /tmp/cal*         File for collecting calendar data

     /usr/lib/public.calendar
                       Public calendar

RETURN VALUE
     [0]            The exit code is always 0.

CAVEATS
     Calendar's extended idea of `tomorrow' doesn't account for
     holidays.

     The program uses the programs /lib/cpp, /usr/lib/calendar,
     egrep(1), sed(1), and mail(1mh) to do the job, so changes to
     these may affect calendar.

     Executing calendar with the dash (-) option will cause mail
     to be sent to all users with calendar files. It is
     recommended that this option only be used by cron.

SEE ALSO
     at(1), egrep(1), mail(1mh), sed(1), and cron(8).






























Printed 5/12/88                                                 2





































































%%index%%
na:336,79;
sy:415,227;
de:642,2125;
op:2767,259;
ex:3026,540;
fi:3566,200;4174,302;
rv:4476,171;
ca:4647,813;
se:5460,210;
%%index%%000000000156

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026