[Remind-Fans] Printing next month's calendar
Brian Medley
bpmedley at 4321.tv
Sun Dec 1 15:27:07 EST 2002
On Sun, Dec 01, 2002 at 01:52:29PM -0500, David A. De Graaf wrote:
> I have a cron entry
> 0 3 1 * * /usr/local/bin/rempr
> that prints a lovely calendar on the first of each month.
>
> I'd prefer to do it sooner, say, on 12/23.
> But that requires an argument to rempr, eg,
> rempr Jan 2003
>
> I could figure the arguments by mucking with the date command
> and some elaborate case statement to convert Dec into Jan
> and 2002 into 2003, but that seems tedious.
>
> Is there an easier way within the capabilities of remind?
>
> Something like
> rempr "now + 7d"
> would be nice.
Not sure of the date format needed by rempr, but something similar to the
following might do what you want:
0 3 1 * * /usr/local/bin/rempr `perl -MPOSIX -e 'print strftime "\%Y\-\%m\-\%d", \
localtime(time + 7*86_400)'`
--
~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~=-., \|/ (___) \|/ _,.-=~'`^`
Brian Medley @~./'O o`\.~@
"Knowledge is Power" brian.medley at verizon.net /__( \___/ )__\ *PPPFFBT!*
-- Francis Bacon `\__`U_/'
_,.-=~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~= <____|' ^^`'~=-.,__,.-=
~`'^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-==--^'~=-.,__,.-=~'`^`
More information about the Remind-fans
mailing list