On Apr 06 12:09:01, frantisek holop wrote:
> hmm, on Tue, Apr 06, 2010 at 11:26:28AM +0200, Jan Stary said that
> > On Apr 06 11:15:26, frantisek holop wrote:
> > > hi there,
> > > 
> > > what happens if i specify a cronjob like this?
> > > 
> > > 23 59 31 * * $HOME/bin/whatever
> > 
> > Cron will just do what it's told: run whatever at "31.*. 23:59"
> 
> so i could basically do 12 lines with the correct
> last day of the month rules :]

And correct the 59:23, of course.
Or you could deal with the last-day-of-the-month arithmetic
inside ~/bin/whatever ("should I really run?"), and do
59 23 28-31 * * whatever


> > > i am looking for an alternative @monthly, not
> > > 
> > > 0 0 1 * *
> > > 
> > > but the last minutes of the last day of the month.
> > 
> > Why?
> 
> because for me the month ends at 23:59:59 on the last day
> of month n, and not at 00:00:00 on the first day of month n+1...

Why?

Reply via email to