Calendar program dates

Greg 'groggy' Lehey grog at FreeBSD.org
Fri Aug 22 22:42:41 PDT 2003


[Format recovered--see http://www.lemis.com/email/email-format.html]

Mutilated quotations.

On Thursday, 21 August 2003 at 10:43:17 -0500, Charles Howse wrote:
>>> OK, I jumped the gun here.
>>> After browsing through some of the calendar.* files, I
>> realize that it
>>> sends an event for tomorrow if no event for today exists.
>>> Sorry about that.  :-)
>>>
>>
>> From the man page:-
>>
>>      The calendar utility checks the current directory for a file
>> named calendar and displays lines that begin with either today's
>> date or tomor- row's.  On the day before a weekend (normally
>> Friday), events for the next three days are displayed.
>
> I read the man page before I posted, but didn't understand what "either
> today's date or tomorrow's." meant before I browsed the calendar.*
> files.  I thought it might be set to display tomorrow's date by default
> and I needed to set it to display today's date.

Here's what I use for the same purpose:

   #!/bin/sh
   #
   # Go through the calendars and find out what happened today.
   cd /usr/share/calendar
   (for i in /usr/share/calendar/calendar.*; do calendar -W -1 -f $i 2>/dev/null; done) | sort | uniq | mail -s "Today's anniversaries" grog 

Greg
--
When replying to this message, please take care not to mutilate the
original text.
For more information, see http://www.lemis.com/email.html
Finger grog at FreeBSD.org for PGP public key
See complete headers for address and phone numbers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030823/69546c87/attachment.bin


More information about the freebsd-questions mailing list