Re: cron: nth <weekday> of month?
- To: firstname.lastname@example.org
- Subject: Re: cron: nth <weekday> of month?
- From: Bud Rogers <email@example.com>
- Date: Wed, 25 Apr 2001 16:53:46 -0500
- Message-id: <01042516534600.22533@twocups>
- In-reply-to: <firstname.lastname@example.org>
- References: <20010425035828.A17039@navel.introspect> <email@example.com>
"Karsten M. Self" <firstname.lastname@example.org> 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 <email@example.com> http://www.sirinet.net/~budr
All things in moderation. And not too much moderation either.