[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Createing a Crontab for the last day of the month



On Mon, Jun 25, 2001 at 04:26:12PM -0400, Miller, Jim wrote:
| Hello guys,
|     Is there an easy way to run a script the last day of each month using
| cron.  IE it would handle the 30,31,29/28 issue?

How about using the first instead?  It's only 1 day later, and is much
easier to compute.

Otherwise you could list each month and the corresponding end-of-month
day.  I don't know how you would handle leap-year with that though.

-D



Reply to: