From owner-freebsd-questions Wed Sep 9 09:00:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA01433 for freebsd-questions-outgoing; Wed, 9 Sep 1998 09:00:00 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pau-amma.whistle.com (s205m64.whistle.com [207.76.205.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA01425 for ; Wed, 9 Sep 1998 08:59:54 -0700 (PDT) (envelope-from dhw@whistle.com) Received: (from dhw@localhost) by pau-amma.whistle.com (8.8.8/8.8.7) id IAA06850 for freebsd-questions@FreeBSD.ORG; Wed, 9 Sep 1998 08:58:06 -0700 (PDT) (envelope-from dhw) Date: Wed, 9 Sep 1998 08:58:06 -0700 (PDT) From: David Wolfskill Message-Id: <199809091558.IAA06850@pau-amma.whistle.com> Subject: Re: CRON JOBS Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Date: Wed, 9 Sep 1998 03:52:24 -0500 (CDT) >From: David Vondrasek >> > 0 10 20 30 40 50 filename >> > This will run the script at 10 minute intervels, correct ? >> Every 10 minutes :- >> 0,10,20,30,40,50 * * * * /bin/othertask >> (There's an alternative syntax as well.) >Thanks, I had note on this and I just took BAD notes. >This helps me understand the notes i have, One of the things I find useful to do in crontabs is to place a comment line, showing the various fields, such as: > crontab -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.TuzuXx2202 installed on Tue Sep 1 15:50:21 1998) # (Cron version -- $Id: crontab.c,v 1.6.2.3 1998/03/09 11:42:00 jkh Exp $) #min hr dom mon dow cmd 03 13 * * 1-5 /usr/local/sbin/amcheck Engineering 03 03 * * * /usr/local/sbin/do_backups -p Tends to dramatically reduce the number of times I do a "man 5 crontab". Of course, it's only useful for systems that permit comments in crontabs, but I'm having trouble recalling the last system I used that had that limitation (possibly an NCR Tower...). FWIW, david -- David Wolfskill UNIX System Administrator dhw@whistle.com voice: (650) 577-7158 pager: (650) 371-4621 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message