[Remind-Fans] Re: -a -a and future day reminders
John Harrigan
jfharrigan at fedex.com
Fri Dec 9 17:08:42 EST 2016
* dfs at roaringpenguin.com (Dec 09, 2016 @ 16:06-0500):
> On Fri, 09 Dec 2016 13:36:45 -0700 John Harrigan <jfharrigan at fedex.com> wrote:
> > When I run 'remind -q -h -a -a test.rem *10' after 10:00am on Friday
> > I don't see anything.
>
> That's because *10 causes Remind to loop, setting it's notion of "today"
> to Friday, Saturday, Sunday, Monday, ...
>
> And because it's after 10:00, each time through Remind thinks the 10:00
> reminder is in the past and does not triger it.
>
> You have to supply a time on the command line to fake it. Try:
>
> remind -q -h -a -a test.rem '*10' 9:00
>
> The remind successively thinks it's Friday at 9:00, Saturday at 9:00, ...
Thanks. After reading your explanation I found realtoday() in
the man page and came up with the following that seems to work:
BANNER %
SET meeting_time 10:00
IF today() > realtoday() || now() < meeting_time
REM Mon Tue Wed Thu Fri AT [meeting_time] MSG %w %3: go to meeting
ENDIF
More information about the Remind-fans
mailing list