Date: Wed, 9 Sep 1998 08:58:06 -0700 (PDT) From: David Wolfskill <dhw@whistle.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: CRON JOBS Message-ID: <199809091558.IAA06850@pau-amma.whistle.com> In-Reply-To: <Pine.BSF.4.01.9809090350520.381-100000@stumbleinn.dyn.ml.org>
next in thread | previous in thread | raw e-mail | index | archive | help
>Date: Wed, 9 Sep 1998 03:52:24 -0500 (CDT) >From: David Vondrasek <david@stumbleinn.dyn.ml.org> >> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809091558.IAA06850>