[Gllug] crontab 'last friday in each month'

Alain Williams addw at phcomp.co.uk
Mon Dec 8 12:12:39 UTC 2003


On Mon, Dec 08, 2003 at 12:05:57PM +0000, Tethys wrote:
> 
> Richard Jones writes:
> 
> >This runs the script on the first Monday of the month (assuming I've
> >got this correct ...):
> >
> >0 15 1-7 * 1 script.sh
> >
> >How can I run the script on the last Friday of each month?
> 
> Run it on every Friday, and have the script itself bail if there are
> less than 7 days to the end of the month. Can't think of an easy way
> of doing it directly with cron, though.

I have a patched version of cron to do just this (& a couple of other small things).
I must admit that I haven't got round to sending the patch in to paul vixie.

If you want the source drop me a note and I will send it to you.

-- 
Alain Williams

#include <std_disclaimer.h>

FATHERS-4-JUSTICE - Campaigning for equal rights for parents and the
best interests of our children. See http://www.fathers-4-justice.org

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list