From owner-freebsd-questions@FreeBSD.ORG Tue Sep 30 13:55:30 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 0253016A4B3 for ; Tue, 30 Sep 2003 13:55:30 -0700 (PDT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id E547D4400B for ; Tue, 30 Sep 2003 13:55:27 -0700 (PDT) (envelope-from freebsd-questions@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1A4RWo-0005f8-00 for ; Tue, 30 Sep 2003 22:55:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A4RWn-0005f0-00 for ; Tue, 30 Sep 2003 22:55:25 +0200 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1A4RWn-0003k3-00 for ; Tue, 30 Sep 2003 22:55:25 +0200 From: Kai Grossjohann Date: Tue, 30 Sep 2003 22:56:20 +0200 Lines: 15 Message-ID: <86d6di0zd7.fsf@slowfox.dyndns.org> References: <20030930164957.GL59342@ns2.wananchi.com> <20030930181029.GA2738@wopr.caltech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (berkeley-unix) Cancel-Lock: sha1:SFQ7hJrjxXv7vr7CPHj3AnFkniM= Sender: news 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, 30 Sep 2003 20:55:30 -0000 Matthew Hunt writes: >> 2. Every first Thursday of the month > > 0 3 1-7 * * [ `date +%a` = Thu ] && mycommand 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 But I'm not an expert. Kai