Thanks, I had the <tab> character incorrectly specified. I had had calendar working sometime back and could remember everything it required.
----- Original message ----- From: "Erik Christiansen via luv-main" <[email protected]> To: [email protected] Cc: Erik Christiansen <[email protected]> Subject: Re: Appointment reminder app Date: Wed, 12 Sep 2018 18:22:33 +1000 On 12.09.18 00:14, Lindsay W via luv-main wrote: > I am looking for a simply appointment reminder app, I am NOT > interested in anything online. As well as normal appointments I would > like to be able to put in events that occur on particular day of the > month, such as "2nd saturday, Local market". BSD Calendar would do > exactly what I want but i cannot get it to print anything. When the > command is run it does read the "calendar" file (checked that with > ltrace), but never prints anything. Has anybody got BSD calendar to > work, what should the data file look like. In the debian version of BSD calendar, the date is only recognized when it occurs at the beginning of a line. Also, it will only display lines that use a <tab> character to separate the date and description, or that begin with a <tab>. Your version may be equally modern, with similar requirements? For many years I have used nothing else, without any problems. Piping its output to /usr/bin/mail delivers it where It'll be read. There may be a more elegant way to put the reminder in the subject line, but this does it for me: x=`calendar -l 7 -f ~/Personal/domestic/calendar` ( [ -n "$x" ] && echo "$x" | mail -s "$x" erik ) The 7 day lookahead gives me time to buy a birthday card or gift, adding a reminder each day. In my case that is more effective than one reminder 7 days on an earlier date. > It would not be to difficult to write a simple app to do this but > SURELY there must be something out there, hmmmmm a look at the source > of BSD Calendar would probably be usefull. Nah, BSD calendar works like a bought one. And with a short alias, I can vim my reminder calendar instantly and efficiently. A modeline of: vim:noexpandtab list protects that file from my editor tab eliminating default, and highlights tabs - reminding me that they're necessary in the calendar file. Erik _______________________________________________ luv-main mailing list [email protected] https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main _______________________________________________ luv-main mailing list [email protected] https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main
