From owner-freebsd-questions Wed Oct 11 21:47:40 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id 34A7137B502 for ; Wed, 11 Oct 2000 21:47:38 -0700 (PDT) Received: from 149.211.6.64.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Wed, 11 Oct 2000 21:46:14 -0700 Received: (from cjc@localhost) by 149.211.6.64.reflexcom.com (8.11.0/8.11.0) id e9C4lTr16315; Wed, 11 Oct 2000 21:47:29 -0700 (PDT) (envelope-from cjc) Date: Wed, 11 Oct 2000 21:47:29 -0700 From: "Crist J . Clark" To: Mike Meyer Cc: George Yobst , questions@FreeBSD.ORG Subject: Re: Cron question Message-ID: <20001011214729.J25121@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <14344580@toto.iv> <14820.46059.743717.697477@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <14820.46059.743717.697477@guru.mired.org>; from mwm@mired.org on Wed, Oct 11, 2000 at 01:39:39PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Oct 11, 2000 at 01:39:39PM -0500, Mike Meyer wrote: > 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. Or if you want to be 3l33t, you can cut that to, [ `date +%d` -lt 8 ] && realjob -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message