Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Sep 2003 12:06:54 -0500
From:      "Charles Howse" <chowse@charter.net>
To:        "'Odhiambo Washington'" <wash@wananchi.com>, "'Free BSD Questions list'" <freebsd-questions@freebsd.org>
Subject:   RE: complex crontab query
Message-ID:  <001c01c38775$3fe93f80$04fea8c0@moe>
In-Reply-To: <20030930164957.GL59342@ns2.wananchi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> This question was asked and was answered by Crist J. Clark 
> some years gone.
> Google could not help me so I beg to ask here:
> 
> I would like to run a script via crontab every
> 
> 1. 3rd day and 28th day of each month (seems easy)
> 2. Every first Thursday of the month

One solution would be to program the logic into your script, then run
the script every day from crontab.
Example bash pseudo-code:
If day-of-month = 3 or 28 ; then
	do some stuff
Elif day-of-month <= 7 and day-of-week = Thursday ; then
	do the same stuff
fi




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001c01c38775$3fe93f80$04fea8c0>