From owner-freebsd-questions@FreeBSD.ORG Tue Mar 1 07:22:33 2005 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 DFF4316A4CE for ; Tue, 1 Mar 2005 07:22:33 +0000 (GMT) Received: from ns.mccme.ru (ns.mccme.ru [62.117.108.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3BB443D5A for ; Tue, 1 Mar 2005 07:22:29 +0000 (GMT) (envelope-from emin@mccme.ru) Received: from mccme.ru (IDENT:root@mccme.ru [62.117.108.7]) by ns.mccme.ru (8.12.10/8.12.10) with ESMTP id j217SfGt032508 for ; Tue, 1 Mar 2005 10:28:42 +0300 (MSK) (envelope-from emin@mccme.ru) Received: from mccme.ru (IDENT:emin@localhost.mccme.ru [127.0.0.1]) by mccme.ru (8.9.3/8.9.3) with SMTP id KAA26207 for ; Tue, 1 Mar 2005 10:22:35 +0300 Date: Tue, 1 Mar 2005 10:22:35 +0300 From: "Eugene M. Minkovskii" To: freebsd-questions@freebsd.org Message-ID: <20050301072235.GA24150@mccme.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2.1i Organization: MCCME Moscow X-DCC-SPAMCHECK.NET-Metrics: ns.mccme.ru 1168; Body=1 Fuz1=1 Fuz2=1 X-MCCME-Spam: No, score=0.043 required=5 tests=AWL Subject: crontab synatx 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, 01 Mar 2005 07:22:34 -0000 Hello. I put in my crontab following string: # min hour mday month wday command 0 7 */3 * * echo "Hello world" So, I hope, this command will be workind every third day: 3,6,9,12 etc, because at man crontab we read: For example, ``0-23/2'' can be used in the hours field to specify command execution every other hour (the alternative in the V7 standard is ``0,2,4,6,8,10,12,14,16,18,20,22''). But, my command worked at 28 feb, and 1 march. Other case I type # min hour mday month wday command 0 7 */14 * * echo "Hello world" And this is work at 15 febr. Is it bug or feature? Perhaps crontab count day of month from zero? If so, when should work command if I type directly number of day: # min hour mday month wday command 0 7 14 * * echo "Hello world" And how will be counted months? -- Sensory yours, Eugene Minkovskii Сенсорно ваш, Евгений Миньковский