From owner-freebsd-doc@FreeBSD.ORG Thu Jul 3 14:32:24 2003 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD1FF37B401 for ; Thu, 3 Jul 2003 14:32:24 -0700 (PDT) Received: from cfcl.com (cpe-24-221-172-174.ca.sprintbbd.net [24.221.172.174]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40C2743FE9 for ; Thu, 3 Jul 2003 14:32:24 -0700 (PDT) (envelope-from rdm@cfcl.com) Received: from [192.168.254.205] ([192.168.254.205]) by cfcl.com (8.12.6/8.11.1) with ESMTP id h63LXsj6059175 for ; Thu, 3 Jul 2003 14:33:56 -0700 (PDT) (envelope-from rdm@cfcl.com) Mime-Version: 1.0 Message-Id: In-Reply-To: <20030703211227.GA22445@Odin.AC.HMC.Edu> References: <20030703211227.GA22445@Odin.AC.HMC.Edu> X-Mailer: Eudora for Macintosh! Date: Thu, 3 Jul 2003 14:31:45 -0700 To: freebsd-doc@freebsd.org From: Rich Morin Content-Type: text/plain; charset="us-ascii" ; format="flowed" Subject: Re: format of /etc/crontab? X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2003 21:32:25 -0000 At 2:12 PM -0700 7/3/03, Brooks Davis wrote: >Hmm, cron(8) mentions that /etc/crontab is in a difference format and >refrences crontab(5), but you seems to be correct that crontab(5) >doesn't mention the differences. I'm fairly sure the only difference is >the who field between the time and command specifications. ... OK; I'd suggest the following change to crontab(5): The ``sixth'' field (the rest of the line) specifies the command to be ... --- In the case of /etc/crontab, another field (username) follows the time and date fields. This is normally set to root, but other names can be specified; the command will be setuid(2) to the corresponding uid. The ``final'' field (the rest of the line) specifies the command to be ... The man page also discusses the use of "eight special strings" (e.g., "@reboot". I suspect that these be used in /etc/crontab, as: @reboot rdm rm -rf /usr/tmp/rdm I don't know if this needs to be explicated, but it couldn't hurt... -r -- email: rdm@cfcl.com; phone: +1 650-873-7841 http://www.cfcl.com/rdm - my home page, resume, etc. http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc. http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series