From owner-freebsd-questions Sun Nov 4 22:42:16 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp006pub.verizon.net (smtp006pub.verizon.net [206.46.170.185]) by hub.freebsd.org (Postfix) with ESMTP id 8BE8F37B405 for ; Sun, 4 Nov 2001 22:42:13 -0800 (PST) Received: from verizon.net (pool-141-154-57-65.bos.east.verizon.net [141.154.57.65]) by smtp006pub.verizon.net with ESMTP ; id fA56g8801072 Mon, 5 Nov 2001 00:42:08 -0600 (CST) Message-ID: <3BE63310.5010001@verizon.net> Date: Mon, 05 Nov 2001 01:34:56 -0500 From: Simon Morton Reply-To: smorton@acm.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.5) Gecko/20011011 X-Accept-Language: en,pdf,zh-CN,de-DE,zh-TW,zh, zh-pzõ` MIME-Version: 1.0 To: BSD Freak Cc: FreeBSD Questions Subject: Re: A cron job to run every 4 weeks References: <512fe501a6.501a6512fe@mbox.com.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG BSD Freak wrote: > Hiya all again.... > > I need to set a cron job to do something at 4am on Monday every 4 weeks > (not every month). I have put the following in (as a regular user using > crontab -e) : > > #minute hour mday month wday command > 0 4 * * 1/4 ~/scripts/myscript > > > I think that this is incorrect, but I'm not sure...couldn't find any > good info on something like this...... Also if this is correct, when > will it start from? This monday? Next monday? When will it start > counting down the 4 weeks? man 5 crontab However I suspect you'll find crontab can't do what you want. You will probably need to schedule your script every Monday and have it only do something every 4th time it is called. Simon -- http://www.SimonMorton.com smorton at acm dot org \rm -rf /bin/laden To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message