<div>This doesn't address the specific question but it is related:</div><div><br></div><div>This seems like a good place to point out the following bit I keep in my cron file. The comments that trace down to the columns has always been very useful to me. I didn't come up with this and I'm sorry to say I don't remember where I saw it first.</div>
<div><br></div><div>Also another thing I would suggest in terms of cron maintenance is editing text file (I call mine cronjobs.txt) and when you want to update your cron jobs you run: "contab -r && crontab ./cronjobs.txt" . crontab -r will clear out your jobs and crontab ./file.txt will load your new jobs. It's been handy to me have that setup for backups. YMMV</div>
<div><br></div><div>(word-wrap may be your enemy below)</div><div>==================</div><div># Global variables</div><div>SHELL=/bin/bash</div><div>PATH=/sbin:/bin:/usr/sbin:/usr/bin</div><div>MAILTO=<a href="mailto:woody@2143.net">woody@2143.net</a></div>
<div>HOME=/home/bwood</div><div><br></div><div># minute (0-59),</div><div># | hour (0-23),</div><div># | | day of the month (1-31),</div><div># | | | month of the year (1-12),</div><div># | | | | day of the week (0-6 with 0=Sunday).</div>
<div># | | | | | commands</div><div># | | | | | |</div><div> 0<span class="Apple-tab-span" style="white-space:pre">        </span> * * * * /home/bwood/script.sh</div>
<div><br></div><br><div class="gmail_quote">On Thu, Apr 23, 2009 at 5:42 PM, Pete Hardie <span dir="ltr"><<a href="mailto:pete.hardie@gmail.com">pete.hardie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, Apr 23, 2009 at 13:33, Chris Fowler <<a href="mailto:cfowler@outpostsentinel.com">cfowler@outpostsentinel.com</a>> wrote:<br>
> I want to execute a script at 6pm on the first Thursday of each month.<br>
> Is there a trick in crontab I can do?<br>
><br>
> Here are the fields allowed<br>
><br>
> field allowed values<br>
> ----- --------------<br>
> minute 0-59<br>
> hour 0-23<br>
> day of month 1-31<br>
> month 1-12 (or names, see below)<br>
> day of week 0-7 (0 or 7 is Sun, or use names)<br>
><br>
> The only thing I can think of off the top of my head is to run it every<br>
> Thursday and then check to see if we are the first Thursday of the<br>
> month. If not, exit 0.<br>
<br>
</div>That looks like the only option - the only mention I found in GNU crontab was<br>
that day-of-month and day-of-week will BOTH be run if specified<br>
<font color="#888888"><br>
<br>
<br>
--<br>
Pete Hardie<br>
--------<br>
Better Living Through Bitmaps<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
</div></div></blockquote></div><br>