[Remind-Fans] Problems Aliasing Remind Output Using the Today Variable

Mike Harris mjharris-lists at rcn.com
Mon Jan 1 23:57:46 EST 2007


I have a few commands aliased in Unix (I'm using Mac OS X) so that they will show me tomorrow's schedule, the day after that, and so on.  As I use tcsh, the alias takes the form of:

alias 2trem "remind ~/.reminders `(echo 'banner %'; echo 'msg [trigger(today()+2)]') | remind -`"
alias 2yrem "remind ~/.reminders `(echo 'banner %'; echo 'msg [trigger(today()-2)]') | remind -`"
alias 3trem "remind ~/.reminders `(echo 'banner %'; echo 'msg [trigger(today()+3)]') | remind -`"
alias 3yrem "remind ~/.reminders `(echo 'banner %'; echo 'msg [trigger(today()-3)]') | remind -`"
alias trem "remind ~/.reminders `(echo 'banner %'; echo 'msg [trigger(today()+1)]') | remind -`"
alias yrem "remind ~/.reminders `(echo 'banner %'; echo 'msg [trigger(today()-1)]') | remind -`"

The problem I am running into with this setup, however, is that the 'today()' variable doesn't seem to get refreshed at all from day to day.  In other words, let's say I open up a terminal session on December 29.

If I ran trem today -- the evening of January 1, 2007 -- it would not show me remind's output for 1/2/07, it would show remind's output to me for 12/30/06.

Any thoughts on how to solve this?

Mike



More information about the Remind-fans mailing list