Monty Malik wrote:

> Hello all,
>
> I just have a quick question about crontab.  How do I get a program to
> run every 10 minutes.  I know that for something to run every hour the
> format would be:
>
>                                 1 * * * * /usr/bin/...
>
> would I use decimals or fractions to represent 10 minutes?  For example:
>
>                                 0.17 * * * * /usr/bin/...
>
> or
>
>                                 1/6 * * * * /usr/bin/...
>
> Are any of the  above lines right or is there a proper way to represent 10
> minutes?
>
> Any help would be greatly appreciated.
>
> Thanks a bunch
>
> Monty

No, you got it mixed up.  The fields are as follows

1st:  The minute of the hour(0-59)
2nd: The hour of the day(0-23)
3rd:  The day of the month (1-31)
4th:  The month (1-12)
5th:  The day of the week (Sun=0, Mon=1, ... Sat=6)

in your ex.  1 * * * * /usr/bin/...  means every hour 12:01, 13:01, 14:01,
etc...
the asterisk * means every.  It is a little confusing at first.  To run every
ten minute would be 10,20,30,40,50 * * * * /usr/bin.

Reply via email to