From owner-freebsd-questions@FreeBSD.ORG Tue Oct 7 08:39:55 2003 Return-Path: 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 00F4916A4B3 for ; Tue, 7 Oct 2003 08:39:55 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7675443F3F for ; Tue, 7 Oct 2003 08:39:51 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h97FdT9E067151 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 7 Oct 2003 16:39:45 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id h97FdTR3067150; Tue, 7 Oct 2003 16:39:29 +0100 (BST) (envelope-from matthew) Date: Tue, 7 Oct 2003 16:39:29 +0100 From: Matthew Seaman To: Odhiambo Washington , Free BSD Questions list Message-ID: <20031007153929.GE80886@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Odhiambo Washington , Free BSD Questions list References: <20030930164957.GL59342@ns2.wananchi.com> <20030930180743.GA54438@happy-idiot-talk.infracaninophile.co.uk> <20031007145347.GB49707@ns2.wananchi.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="o0ZfoUVt4BxPQnbU" Content-Disposition: inline In-Reply-To: <20031007145347.GB49707@ns2.wananchi.com> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk Subject: Re: complex crontab query X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2003 15:39:55 -0000 --o0ZfoUVt4BxPQnbU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 07, 2003 at 05:53:47PM +0300, Odhiambo Washington wrote: > * Matthew Seaman [20030930 21:08]: wrot= e: > > 23 11 * * Thu [ $(date +%d) -lt 8 ] && your_script > How does that differ with the following? >=20 > 23 11 * * 4 if [ `date +\%d` -le 7 ]; then /path/to/my/command; fi TIMTOWTDI. Both lines should have the same effect overall, although I neglected to escape the % sign in what I wrote, which is not a good move in a crontab file. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --o0ZfoUVt4BxPQnbU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/gt4xdtESqEQa7a0RArluAKCDZos46Jd7NYVOulXMcEpOe1FbbgCeMXw6 iw5ioh1KGZgxlQxCNfu/Dsg= =V9Qo -----END PGP SIGNATURE----- --o0ZfoUVt4BxPQnbU--