Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!swbatl!texbell!moxie!texsun!playroom!cliffs From: cliffs@sun.com (Clifford C. Skolnick) Newsgroups: comp.unix.wizards Subject: Re: Cron - First Saturday of the month Message-ID: Date: 20 Aug 90 03:54:24 GMT References: <1990Aug8.185745.16606@iwarp.intel.com> <1990Aug11.030818.28876@watserv1.waterloo.edu> <3706@aspect.UUCP> <1489@hagbard.dc.luth.se> Sender: news@playroom.UUCP Lines: 22 In-reply-to: bj@dc.luth.se's message of 15 Aug 90 17:26:59 GMT In article <1489@hagbard.dc.luth.se> bj@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... Can you change the problem so that the program executes it the first minute of every month instead? If not, use cron to call a script on the 28 of every month that will enter an at job for the last day of the month. Writing this shell script is an excercise for the reader :-) -- Cliff Skolnick - Technical Consultant cliffs@east.sun.com [I only work for Sun, I do not speak for them] "The floggings will continue until morale improves"