[Eug-lug] crontab - last day of month

Bob Miller kbob at jogger-egg.com
Mon Nov 20 13:59:01 PST 2006


Bob Miller wrote:

> 0 1 28-31 * * [ "`date +%m`" != "`date +%m --date=tomorrow`" ] && run-end-of-month-job

Quentin's observation improves on that.

0 1 28-31 * * [ "`date +%m -d tomorrow`" = 1 ] && run-end-of-month-job

-- 
Bob Miller                              K<bob>
                                        kbob at jogger-egg.com


More information about the EUGLUG mailing list