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

Re: cron: nth <weekday> of month?



On Thu, Apr 26, 2001 at 07:19:11PM -0500, will trillich wrote:
> what if we propose something like
> 
> 	#min hr monthday month weekday cmd
> 	   0  1     1      1      *    echo Jan 1 1:00am
> 	#and for the new concepts, which could use tweaking:
> 	   0  1    -1      *      *    echo last-of-every-month, 1:00am
> 	   0  1     *      *   mon-fri echo mon,tue,wed,thu,fri at 1:00am
> 	   0  1     *      *    wed1   echo first wednesday each month, 1am
> 	   0  4     *      *    sun-1  echo last wednesday each month, 4am

I'm with you up to the last one...shouldn't 'sun-1' refer to the last
*sunday* of a month?  Otherwise I'm unsure as to the logic of having 'wed1'
refer to the first wednesday, but 'sun-1' refer to the last
wednesday...maybe I'm missing something?

Of course, it's entirely possible this is just a typo, in which case, all is
right with the world ;)

-b3



Reply to: