Re: cron: nth <weekday> of month?
- To: email@example.com
- Subject: Re: cron: nth <weekday> of month?
- From: Bud Rogers <firstname.lastname@example.org>
- Date: Wed, 25 Apr 2001 16:53:46 -0500
- Message-id: <01042516534600.22533@twocups>
- In-reply-to: <email@example.com>
- References: <20010425035828.A17039@navel.introspect> <firstname.lastname@example.org>
"Karsten M. Self" <email@example.com> writes:
> I've got a job I'd like to run once a month, on a set day of the week,
> say, the first Sunday of the month. Suggestions as to how to do this
> with cron?
Could you wrap the job in a shell scrip? Run the script from cron every
Sunday. Have the script check if the date is within the first seven days of
the month. If so run the job, else exit quietly. Not very elegant, but it
would get the job done.
Bud Rogers <firstname.lastname@example.org> http://www.sirinet.net/~budr
All things in moderation. And not too much moderation either.