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

Re: cron: nth <weekday> of month?



On Fri, Apr 27, 2001 at 09:09:12AM -0500, b3 wrote:
> 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 ;)

i was thinking that "sun" meant Any Given Sunday, where
sun1 would be "first sunday" and "sun3" would be "third
sunday"...

	sun    any sunday
	sun1   first sunday
	sun2   second sunday
	sun-1  last sunday
	wed-2  second-to-last wednesday

just an idea, is all.

-- 
DEBIAN NEWBIE TIP #21 from Will Trillich <will@serensoft.com>
:
Looking to configure your Debian NETWORK SETTINGS? Look at the
file /etc/network/interfaces (try "man interfaces" for more
info). Then "ifup -a" to reload your settings, and "ifconfig" to
display them. (Also check out "apt-get install ipmasq"!)

Also see http://newbieDoc.sourceForge.net/ ...



Reply to: