From owner-freebsd-questions@FreeBSD.ORG Tue Aug 30 13:49:57 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1A2416A41F for ; Tue, 30 Aug 2005 13:49:57 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail25.sea5.speakeasy.net (mail25.sea5.speakeasy.net [69.17.117.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F88943D49 for ; Tue, 30 Aug 2005 13:49:57 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 5712 invoked from network); 30 Aug 2005 13:49:56 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail25.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 30 Aug 2005 13:49:56 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id CC53F49; Tue, 30 Aug 2005 09:49:55 -0400 (EDT) Sender: lowell@be-well.ilk.org To: Nicolas Blais References: <200508281316.48668.nb_root@videotron.ca> From: Lowell Gilbert Date: 30 Aug 2005 09:49:55 -0400 In-Reply-To: <200508281316.48668.nb_root@videotron.ca> Message-ID: <44u0h7fsak.fsf@be-well.ilk.org> Lines: 32 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: crontab : day-of-month support for last-day-of-month X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2005 13:49:57 -0000 Nicolas Blais writes: > Does our crontab allow the use of "L" (as found on > http://wiki.opensymphony.com/display/QRTZ1/CronTriggers+Tutorial?decorator=printable) > in the day-of-month field which would allow for a job to run on a 31th or feb > 28? > > It would be useful for certain apps like /www/awstats to update their database > on the last hour of the month since putting the cron job on the 1st of the > month makes the software update in a new month and putting it on the 30th of > the month might loose 1 day. No, we don't have such a capability. If you go ahead and add it, please note a few points: - There are workarounds that have been around a long time. Longer than Vixie's version of cron, even. - It's not as advantageous as it seems at first glance. Remember that various issues beyond the control of cron may cause the job to end up being executed in the new month anyway. So the job you are running from cron really needs to be able to handle running in the new month, and it is generally simpler to assume that will be the case and backdate the file names than to handle it as an error case. - This particular syntax seems to be unique to the the program ("Quartz") you're looking at. Porting it to FreeBSD might be a useful alternative to reimplementing its features (although it sounds like vast overkill for your case). Good luck.