From owner-freebsd-questions Thu Dec 26 9:40:52 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D76537B401 for ; Thu, 26 Dec 2002 09:40:50 -0800 (PST) Received: from entwistle.sonicboom.org (node-423a3b1b-san-onnet.worldcom.com [66.58.59.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id C794F43EA9 for ; Thu, 26 Dec 2002 09:40:49 -0800 (PST) (envelope-from bri@sonicboom.org) Received: from me3 (gateway.sonicboom.org [66.58.59.29]) by entwistle.sonicboom.org (8.12.6/8.12.6) with SMTP id gBQHemxd007099; Thu, 26 Dec 2002 09:40:48 -0800 (PST) (envelope-from bri@sonicboom.org) Message-ID: <005001c2ad05$f291fa50$3224200a@me3> From: "Brian" To: "Mike Jeays" , "Kirk Bailey" Cc: References: <3E0B2984.7020405@netzero.net> <3E0B3AFB.4050607@rogers.com> Subject: Re: cron/crontab befuddlement Date: Thu, 26 Dec 2002 09:40:57 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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 onenice thing I've discovered is, if you want something done regularly, say every 10 minutes, instead of typing 0,10,20,30,40,50 in the firat field, you can just type */10 in the first field. This is a mass space and keystroke saver for regularly repeated stuff.. Brian ----- Original Message ----- From: "Mike Jeays" To: "Kirk Bailey" Cc: Sent: Thursday, December 26, 2002 9:23 AM Subject: Re: cron/crontab befuddlement > Kirk Bailey wrote: > > > ok, I read man cron and man crontab, and it's as clear as mud. > > Anyplace I can read more and maybe make the light dawn on this useful > > feature? OR, would anyone care to explain more? > > > Basically, you create a file where each line is a command to be executed > on a given schedule. The line looks like this (first line is a > descriptive comment): > > #minute hour mday month wday command > 15 5 * * * > /home/mike/bin/FindAll > > This says to run the command /home/mike/bin/FindAll at 15 minutes past > 5, every day. > The asterisks mean "ignore this field", in effect. > > Wday is the day of the week (I think Sunday=0, Monday 1 etc, but check) > Month is the month, either 1-12 or a three-letter abbreviation, such as > "Oct" > Mday is the day of the month. > > So to run something at 11:15 on October 1st, you would say: > 15 11 1 Oct * /home/me/mycommand. > > You must create this file by running "crontab -e", which will put you into > your favourite editor. You can examine the file with "crontab -l" > > That's it, in a nutshell - details are from memory, so please check! > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message