From owner-freebsd-questions@FreeBSD.ORG Fri Aug 22 22:42:40 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46CD216A503 for ; Fri, 22 Aug 2003 22:42:38 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C17B43FEA for ; Fri, 22 Aug 2003 22:42:36 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 14875526BF; Sat, 23 Aug 2003 15:12:31 +0930 (CST) Date: Sat, 23 Aug 2003 15:12:31 +0930 From: Greg 'groggy' Lehey To: Charles Howse Message-ID: <20030823054231.GO45617@wantadilla.lemis.com> References: <200308220104.04652.malcolm.kay@internode.on.net> <004901c367fa$f848c770$04fea8c0@moe> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BuBclajtnfx5hylj" Content-Disposition: inline In-Reply-To: <004901c367fa$f848c770$04fea8c0@moe> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: freebsd-questions@freebsd.org Subject: Re: Calendar program dates X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2003 05:42:41 -0000 --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--