From owner-freebsd-questions@FreeBSD.ORG Tue Aug 30 21:02:31 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 722C416A41F for ; Tue, 30 Aug 2005 21:02:31 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2059743D48 for ; Tue, 30 Aug 2005 21:02:30 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from clk01a ([66.130.198.54]) by VL-MO-MR007.ip.videotron.ca (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0IM1008MPZPFML@VL-MO-MR007.ip.videotron.ca> for freebsd-questions@freebsd.org; Tue, 30 Aug 2005 17:00:52 -0400 (EDT) Date: Tue, 30 Aug 2005 17:00:44 -0400 From: Nicolas Blais In-reply-to: <43147848.4090606@daleco.biz> To: freebsd-questions@freebsd.org Message-id: <200508301700.51623.nb_root@videotron.ca> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=nextPart6883163.Q8W8572fBb Content-transfer-encoding: 7bit User-Agent: KMail/1.8.2 References: <200508281316.48668.nb_root@videotron.ca> <43147848.4090606@daleco.biz> 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2005 21:02:31 -0000 --nextPart6883163.Q8W8572fBb Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On August 30, 2005 11:16 am, Kevin Kinsey wrote: > Nicolas Blais wrote: > >Hi, > > > >Does our crontab allow the use of "L" (as found on > >http://wiki.opensymphony.com/display/QRTZ1/CronTriggers+Tutorial?decorat= or > >=3Dprintable) in the day-of-month field which would allow for a job to r= un > > 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. > > > >Nicolas. > > As Lowell noted, "last day" isn't an option currently. Any number of > scripting languages, though, are capable of handling this. > > Here was a solution we came up with, using PHP, a couple years > ago: > > http://www.daleco.biz/articles/page.php?story=3D20 > > I'm sure something like this, or better, would be possible > with PERL, ruby, etc., or possibly even sh/bash, though I've > not tried. > > HTH, > > Kevin Kinsey Ok, well I'll try to make a patch for my side. I still believe that having = the=20 option is better that not having it at all, though I may be wrong.=20 Thanks for your replies! Nicolas. =2D-=20 =46reeBSD 7.0-CURRENT #0: Sat Aug 27 13:03:30 EDT 2005 =20 root@clk01a:/usr/obj/usr/src/sys/CLK01A=20 PGP? : http://66.130.198.54:8081/security/nb_root.asc --nextPart6883163.Q8W8572fBb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDFMkDz38ton5LGeIRAvlyAKCE+O/+peJSfW5fGOiOBsE6axyZhACdHnzT h2WlvX+XdO51rXygu7EDZLI= =IN26 -----END PGP SIGNATURE----- --nextPart6883163.Q8W8572fBb--