[Gllug] crontab 'last friday in each month'

Tethys tet at createservices.com
Mon Dec 8 12:05:57 UTC 2003


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.

Tet

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




More information about the GLLUG mailing list