From owner-freebsd-questions@FreeBSD.ORG Mon Jun 8 18:31:05 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3243F1065670 for ; Mon, 8 Jun 2009 18:31:05 +0000 (UTC) (envelope-from vogelke@hcst.com) Received: from beta.hcst.com (beta.hcst.com [192.52.183.241]) by mx1.freebsd.org (Postfix) with ESMTP id CFA718FC1A for ; Mon, 8 Jun 2009 18:31:04 +0000 (UTC) (envelope-from vogelke@hcst.com) Received: from beta.hcst.com (localhost [127.0.0.1]) by beta.hcst.com (8.13.8/8.13.8/Debian-3) with ESMTP id n58IV3Hk015273 for ; Mon, 8 Jun 2009 14:31:03 -0400 Received: (from vogelke@localhost) by beta.hcst.com (8.13.8/8.13.8/Submit) id n58IV33d015271; Mon, 8 Jun 2009 14:31:03 -0400 Received: by kev.msw.wpafb.af.mil (Postfix, from userid 32768) id F1B08BED8; Mon, 8 Jun 2009 14:30:45 -0400 (EDT) To: freebsd-questions@freebsd.org In-reply-to: <4A2D0A5C.8010809@webrz.net> (message from Jos Chrispijn on Mon, 08 Jun 2009 14:55:56 +0200) Organization: Oasis Systems Inc. X-Disclaimer: I don't speak for the USAF or Oasis. X-GPG-ID: 1024D/711752A0 2006-06-27 Karl Vogel X-GPG-Fingerprint: 56EB 6DBF 4224 C953 F417 CC99 4C7C 7D46 7117 52A0 Message-Id: <20090608183045.F1B08BED8@kev.msw.wpafb.af.mil> Date: Mon, 8 Jun 2009 14:30:45 -0400 (EDT) From: vogelke+unix@pobox.com (Karl Vogel) Subject: Re: Cronjob X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vogelke+unix@pobox.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2009 18:31:05 -0000 >> On Mon, 08 Jun 2009 14:55:56 +0200, >> Jos Chrispijn said: J> I would like to execute a script on every last day of the month in my J> crontab. Can someone tell me how I should solve that as it doesn't know J> which month day is the last day of the month? Solving this in the script J> to be executed is no option. I have two scripts for this; one handles the last day of the month, and the other handles the last work/business day of the month. http://www.hcst.net/~vogelke/src/lastday/ -- Karl Vogel I don't speak for the USAF or my company Liberty means responsibility. That is why most men dread it. --G. B. Shaw