running a job on the 2nd Sunday of each month?

David Mandala plug-discuss@lists.plug.phoenix.az.us
05 Mar 2003 10:26:39 -0700


man date is your friend, that said "date +%A" will spit out what day of
the week it is now. The rest is scripting.

On Wed, 2003-03-05 at 10:01, Scott H wrote:
> >>On Tue, 4 Mar 2003, Scott H wrote:
> >>I can't figure out how to run a cron job on the
> >>2nd Sunday of every month, at 4am.  What would
> >> that line look like?  Or is this not possible?
> >
> > according to 
> > man crontab this will run on the 8th through
> > the 14th *and* every Sunday 
> > which is why I wrote date checking as the
> > beginning of the script. I have 
> > not run this schedule myself so I am trusting
> > the man pages to be right.
> 
> I am also trusting the same. 
> 
> > Make the first line of the script check for
> > day of the week and exit if 
> > it's not Sunday. <snip>
> 
> OK, thanks, and how does one write that?  (Sorry,
> newbie at all this, I'm RTFMing, but haven't
> found that yet)
> 
> /home/scott/sigs/thankyous/sincere.html  :)
> 
> 
> 
> 
> .
> 
> 
> 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
-- 
David IS Mandala
gpg fingerprint 8932 E7EF CCF5 1B8C 1B5C A92E C678 795E 45B2 D952
Phoenix, AZ (480) 460-7545 HP, (602) 741-1363 CP
http://www.them.com/~davidm/