cron job every 5 hours

Duane Hill d.hill at yournetplus.com
Fri Jul 13 16:56:45 UTC 2007


On Fri, 13 Jul 2007 at 12:50 -0400, dmehler26 at woh.rr.com confabulated:

> Hello,
>   I want to run an updater script, every 5 hours and x minutes. I thought to 
> use:
>
> minute 5 * * * root path/to/scriptname

crontab(5):
   ...
   Steps are also permitted after an asterisk, so if you want to say
   ``every two hours'', just use ``*/2''.
   ...

So, my guess would be:

minute */5 * * * root path/to/scriptname

> but that looks like it only works once a day, i want it to go every 5 hours 
> not justa at 5 in the monrning.
> Thanks.
> Dave.

-----
  _|_
(_| |


More information about the freebsd-questions mailing list