[sclug] cronicles

Simon Heywood simon at triv.org.uk
Tue Feb 8 16:56:22 UTC 2005


On Tue,  8 Feb 2005 at 15:02:10 +0000, Simon Huggins wrote:
> On Tue, Feb 08, 2005 at 02:09:29PM +0000, Simon Heywood wrote:
> > Sorry, that would be me not reading crontab(5) properly:
> > # Send the SCLUG meeting reminder on the Monday before the
> > # second Wednesday of each month at 10:00.
> > 0 10 6-12 * 1  $HOME/bin/sclug-reminder
> > 
> > Am I right in thinking that this can't be done directly with cron?
> 
> Doesn't look like it.  The manpage says when either day of month or day
> of week matches it'll be run.

Yes. I was convinced I'd read otherwise somewhere, but I must've been
hallucinating. It does seem like a rather bad limitation of cron,
though.

> Can't you run it every day and get perl or something to check if it's
> the right one?

A weekly check should suffice, even if it's a little inelegant. I'll
probably pinch some of the code that Tom posted. (Thanks, Tom!)

S.


More information about the Sclug mailing list