Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 2000 13:39:39 -0500 (CDT)
From:      Mike Meyer <mwm@mired.org>
To:        George Yobst <george@lincc.lib.or.us>
Cc:        questions@freebsd.org
Subject:   Re: Cron question
Message-ID:  <14820.46059.743717.697477@guru.mired.org>
In-Reply-To: <14344580@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
George Yobst writes:
> Hi all,
> How do I get cron to start a job on the first Sunday of the month?
> Thanks  -George

By starting a wrapper every Sunday. The wrapper checks that the day of
month and launches your job if it's less than 8:

	if [ `date +%d` -lt 8 ]; then
		realjob
	fi

That's small enough to imbed in a cron file if you really wanted to.

	<mike



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14820.46059.743717.697477>