[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] crontab
- Subject: [ale] crontab
- From: pete.hardie at gmail.com (Pete Hardie)
- Date: Thu, 23 Apr 2009 13:42:12 -0400
- In-reply-to: <1240508013.16508.4.camel@compaq>
- References: <1240508013.16508.4.camel@compaq>
On Thu, Apr 23, 2009 at 13:33, Chris Fowler <cfowler at outpostsentinel.com> wrote:
> I want to execute a script at 6pm on the first Thursday of each month.
> Is there a trick in crontab I can do?
>
> Here are the fields allowed
>
> ? ? ? ? ? ? ?field ? ? ? ? ?allowed values
> ? ? ? ? ? ? ?----- ? ? ? ? ?--------------
> ? ? ? ? ? ? ?minute ? ? ? ? 0-59
> ? ? ? ? ? ? ?hour ? ? ? ? ? 0-23
> ? ? ? ? ? ? ?day of month ? 1-31
> ? ? ? ? ? ? ?month ? ? ? ? ?1-12 (or names, see below)
> ? ? ? ? ? ? ?day of week ? ?0-7 (0 or 7 is Sun, or use names)
>
> The only thing I can think of off the top of my head is to run it every
> Thursday and then check to see if we are the first Thursday of the
> month. If not, exit 0.
That looks like the only option - the only mention I found in GNU crontab was
that day-of-month and day-of-week will BOTH be run if specified
--
Pete Hardie
--------
Better Living Through Bitmaps
- References:
- [ale] crontab
- From: cfowler at outpostsentinel.com (Chris Fowler)