Date: Tue, 30 Sep 2003 14:00:40 -0700 From: Matthew Hunt <mph@astro.caltech.edu> To: Kai Grossjohann <kai.grossjohann@gmx.net> Cc: freebsd-questions@freebsd.org Subject: Re: complex crontab query Message-ID: <20030930210040.GA5088@wopr.caltech.edu> In-Reply-To: <86d6di0zd7.fsf@slowfox.dyndns.org> References: <20030930164957.GL59342@ns2.wananchi.com> <20030930181029.GA2738@wopr.caltech.edu> <86d6di0zd7.fsf@slowfox.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 30, 2003 at 10:56:20PM +0200, Kai Grossjohann wrote: > My understanding is that putting more than one condition in it > performs a logical conjunction. So wouldn't it work to do like this? > > # minute hour dom month dow command > 0 3 1-7 * 4 mycommand I thought that might be the case, but the man page says: # Commands are executed by cron(8) when the minute, hour, and month of # year fields match the current time, and when at least one of the two # day fields (day of month, or day of week) matches the current time # (see ``Note'' below). ... # Note: The day of a command's execution can be specified by two fields # -- day of month, and day of week. If both fields are restricted (ie, # aren't *), the command will be run when either field matches the # current time. For example, ``30 4 1,15 * 5'' would cause a command # to be run at 4:30 am on the 1st and 15th of each month, plus every # Friday. -- Matthew Hunt <mph@astro.caltech.edu> * Salvage, like other forms of virtue, is http://www.pobox.com/~mph/ * its own reward. -George Reamerstaff
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030930210040.GA5088>