Date: Thu, 3 Jul 2003 14:31:45 -0700 From: Rich Morin <rdm@cfcl.com> To: freebsd-doc@freebsd.org Subject: Re: format of /etc/crontab? Message-ID: <p05200f45bb2a4d497067@[192.168.254.205]> In-Reply-To: <20030703211227.GA22445@Odin.AC.HMC.Edu> References: <p05200f42bb2a44de7749@[192.168.254.205]> <20030703211227.GA22445@Odin.AC.HMC.Edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05200f45bb2a4d497067>