Cron - First Saturday of the month

Christopher R Volpe volpe at underdog.crd.ge.com
Thu Aug 16 06:57:54 AEST 1990


In article <1489 at hagbard.dc.luth.se>, bj at dc.luth.se (B|rje Josefsson) writes:
|>Slightly a side question according to the Subject:, but how to setup a
|>command for execution on the LAST day of the month ONLY? 
|>
|>I could use:
|>            0 0 31 1 * command
|>            0 0 28 2 * command
|>            0 0 31 3 * command
|>            and so on
|>but that will not work on leap years...
|>
|>--Borje

Set the date on your machine to one day ahead of the real date, and tell
cron to run your application on the first of each month. ( 1/2 :-) )
                
==================
Chris Volpe
G.E. Corporate R&D
volpecr at crd.ge.com



More information about the Comp.unix.wizards mailing list