ubuntu-users Digest, Vol 54, Issue 125

Gregory Zill gregory at r3g.net
Wed Feb 11 21:09:55 UTC 2009


On Wed, Feb 11, 2009 at 1:41 PM,  Lubbers, Nicholas wrote:
>> Use cron for this.
>>
>> crontab -e
>> 10 * * * * /path/to/script
>
> Won't that run every hour on the 10 minutes (e.g. 1:10, 2:10, 3:10),
> etc, but not every 10 minutes?  It's possible I'm wrong, but I think the
> right syntax is:
>
> */10 * * * * /path/to/script
>
> Matt Flaschen
>

In crontab, this is the minutes column. So the shorthand indicates
that when the minute, and minute only, is evenly divisible by 10 (mod)
the script will fire.

One of the other posts will result in hourly at ten minutes after
every hour, example
10 * * * * /path/to/script

-- 
The computer you are using has no brain,
therefore you must use your own.

Gregory W Zill, MBA, CISSP




More information about the ubuntu-users mailing list