Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Mar 2005 10:22:35 +0300
From:      "Eugene M. Minkovskii" <emin@mccme.ru>
To:        freebsd-questions@freebsd.org
Subject:   crontab synatx
Message-ID:  <20050301072235.GA24150@mccme.ru>

next in thread | raw e-mail | index | archive | help
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:

<man 5 crontab>
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'').
</man 5 crontab>

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
Сенсорно ваш,   Евгений Миньковский



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050301072235.GA24150>