From owner-freebsd-questions Mon Aug 16 19:33: 6 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id B3F7D14EE9 for ; Mon, 16 Aug 1999 19:33:01 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.8.8/8.8.8) id WAA09458; Mon, 16 Aug 1999 22:33:36 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199908170233.WAA09458@cc942873-a.ewndsr1.nj.home.com> Subject: Re: Crontab entry question... In-Reply-To: from William Melanson at "Aug 16, 99 09:58:12 pm" To: wjm@gate.net (William Melanson) Date: Mon, 16 Aug 1999 22:33:36 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG William Melanson wrote, > > This is the current crontab enrty I have to fire up a simple shell > script: > > #Run at 8:30pm, Monday August 16th > 30 20 16 8 mon /usr/home/user1/script.sh > > My question is how do I (would you) modify this entry to run this > script every 10mins (open ended) starting at say... 8:30pm same day > and month? It depends on just how 'open ended' you mean. Do you want it to run the rest of the day, every ten minutes? 30,40,50 20 16 8 /usr/home/user1/script.sh 0-59/10 20-23 16 8 /usr/home/user1/script.sh Or do you _really_ want to run this once and just keep looping? Maybe you are better off using at(1), % at 2030 8/16 while :; do /usr/home/user1/script.sh sleep 600 done -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message