Date: Sat, 23 Aug 2003 15:12:31 +0930 From: Greg 'groggy' Lehey <grog@FreeBSD.org> To: Charles Howse <chowse@charter.net> Cc: freebsd-questions@freebsd.org Subject: Re: Calendar program dates Message-ID: <20030823054231.GO45617@wantadilla.lemis.com> In-Reply-To: <004901c367fa$f848c770$04fea8c0@moe> References: <200308220104.04652.malcolm.kay@internode.on.net> <004901c367fa$f848c770$04fea8c0@moe>
next in thread | previous in thread | raw e-mail | index | archive | help
--BuBclajtnfx5hylj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [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=20 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@FreeBSD.org for PGP public key See complete headers for address and phone numbers --BuBclajtnfx5hylj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE/Rv7HIubykFB6QiMRAm0xAJ9fQajtwaqjP1kuAbitTK+jyALUCwCdHbOl sqAPYGe5OxGMkiDrzzcX+1I= =SEWu -----END PGP SIGNATURE----- --BuBclajtnfx5hylj--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030823054231.GO45617>