Commit | Line | Data |
---|---|---|
b5dc1377 | 1 | .\" Copyright (c) 1989, 1990 The Regents of the University of California. |
f85e7486 KB |
2 | .\" All rights reserved. |
3 | .\" | |
b5dc1377 | 4 | .\" %sccs.include.redist.man% |
f85e7486 | 5 | .\" |
80ad425a | 6 | .\" @(#)calendar.1 6.13 (Berkeley) %G% |
0edeeecc | 7 | .\" |
b5dc1377 | 8 | .Dd |
b5dc1377 | 9 | .Dt CALENDAR 1 |
0e853b88 | 10 | .Os |
b5dc1377 CL |
11 | .Sh NAME |
12 | .Nm calendar | |
13 | .Nd reminder service | |
14 | .Sh SYNOPSIS | |
15 | .Nm calendar | |
0e853b88 | 16 | .Op Fl a |
b5dc1377 CL |
17 | .Sh DESCRIPTION |
18 | .Nm Calendar | |
19 | checks the current directory for a file named named | |
0e853b88 | 20 | .Pa calendar |
b5dc1377 CL |
21 | and displays lines that begin with either today's date |
22 | or tomorrow's. | |
f85e7486 | 23 | On Fridays, events on Friday through Monday are displayed. |
b5dc1377 | 24 | .Pp |
f85e7486 | 25 | The following options are available: |
0e853b88 CL |
26 | .Bl -tag -width Ds |
27 | .It Fl a | |
f85e7486 KB |
28 | Process the ``calendar'' files of all users and mail the results |
29 | to them. | |
30 | This requires super-user privileges. | |
0e853b88 | 31 | .El |
b5dc1377 | 32 | .Pp |
f85e7486 KB |
33 | A month and day should begin lines. |
34 | They may be entered in almost any format, either numeric or as character | |
35 | strings. | |
36 | A single asterisk (``*'') matches every month. | |
37 | A day without a month matches that day of every week. | |
38 | A month without a day matches the first of that month. | |
39 | Two numbers default to the month followed by the day. | |
49ada5ac | 40 | Lines with leading tabs default to the last entered date, allowing |
f85e7486 KB |
41 | multiple line specifications for a single date. |
42 | By convention, dates followed by an asterisk are not fixed, i.e. change | |
43 | from year to year. | |
b5dc1377 | 44 | .Pp |
f85e7486 | 45 | The ``calendar'' file is preprocessed by |
b5dc1377 | 46 | .Xr cpp 1 , |
f85e7486 KB |
47 | allowing the inclusion of shared files such as company holidays or |
48 | meetings. | |
49 | If the shared file is not referenced by a full pathname, | |
b5dc1377 | 50 | .Xr cpp 1 |
f85e7486 KB |
51 | searches in the current (or home) directory first, and then in the |
52 | directory | |
b5dc1377 | 53 | .Pa /usr/share/calendar . |
0e853b88 CL |
54 | Empty lines and lines protected by the C commenting syntax |
55 | .Pq Li /* ... */ | |
f85e7486 | 56 | are ignored. |
b5dc1377 | 57 | .Pp |
f85e7486 | 58 | Some possible calendar entries: |
792afa7f | 59 | .Bd -unfilled -offset indent |
f85e7486 KB |
60 | #include <calendar.usholiday> |
61 | #include <calendar.birthday> | |
b5dc1377 | 62 | |
f93a9a69 | 63 | 6/15 ... June 15 (if ambiguous, will default to month/day). |
80ad425a KB |
64 | Jun. 15 ... June 15. |
65 | 15 June ... June 15. | |
f85e7486 KB |
66 | Thursday ... Every Thursday. |
67 | June ... Every June 1st. | |
68 | 15 * ... 15th of every month. | |
0e853b88 | 69 | .Ed |
b5dc1377 | 70 | .Sh FILES |
f85e7486 | 71 | The following default calendar files are provided: |
0e853b88 CL |
72 | .Pp |
73 | .Bl -tag -width calendar.christian -compact | |
74 | .It Pa calendar.birthday | |
d392c979 | 75 | Births and deaths of famous (and not-so-famous) people. |
0e853b88 | 76 | .It Pa calendar.christian |
4f0b6db5 | 77 | Christian holidays. |
f85e7486 KB |
78 | This calendar should be updated yearly by the local system administrator |
79 | so that roving holidays are set correctly for the current year. | |
0e853b88 | 80 | .It Pa calendar.computer |
c5bc05d7 | 81 | Days of special significance to computer people. |
0e853b88 | 82 | .It Pa calendar.history |
b5dc1377 | 83 | Everything else, mostly U. S. historical events. |
0e853b88 | 84 | .It Pa calendar.holiday |
b5dc1377 CL |
85 | Other holidays, including the not-well-known, obscure, and |
86 | .Em really | |
f85e7486 | 87 | obscure. |
0e853b88 | 88 | .It Pa calendar.judaic |
4f0b6db5 KB |
89 | Jewish holidays. |
90 | This calendar should be updated yearly by the local system administrator | |
91 | so that roving holidays are set correctly for the current year. | |
0e853b88 | 92 | .It Pa calendar.music |
b5dc1377 | 93 | Musical events, births, and deaths. |
0e853b88 CL |
94 | Strongly oriented toward rock 'n' roll. |
95 | .It Pa calendar.usholiday | |
4f0b6db5 KB |
96 | U.S. holidays. |
97 | This calendar should be updated yearly by the local system administrator | |
98 | so that roving holidays are set correctly for the current year. | |
0e853b88 | 99 | .El |
b5dc1377 CL |
100 | .Sh SEE ALSO |
101 | .Xr at 1 , | |
102 | .Xr cpp 1 , | |
103 | .Xr cron 8 | |
104 | .Xr mail 1 , | |
105 | .Sh COMPATIBILITY | |
71fb7577 | 106 | The |
b5dc1377 | 107 | .Nm calendar |
71fb7577 KB |
108 | program previously selected lines which had the correct date anywhere |
109 | in the line. | |
110 | This is no longer true, the date is only recognized when it occurs | |
111 | first on the line. | |
b5dc1377 CL |
112 | .Sh HISTORY |
113 | A | |
114 | .Nm | |
115 | command appeared in Version 7 AT&T UNIX. | |
b5dc1377 CL |
116 | .Sh BUGS |
117 | .Nm Calendar | |
f85e7486 KB |
118 | doesn't handle events that move around from year to year, i.e. |
119 | ``the last Monday in April''. |