[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cron, crontab, etc.



On Tue, Jul 20, 1999 at 01:07:09PM +0100, Patrick Kirk wrote:
> Hi all,
> 
> I want to schedule a command to run updatebd every 6 hours.  The man pages
> for cron and crontab don't have any useful info on how.
> 
> How do I do this?

Hi, ???

>From `Manual page crontab(5)' line 110:

       Step  values can be used in conjunction with ranges.  Fol­
       lowing a range with ``/<number>'' specifies skips  of  the
       number's value through the range.  For example, ``0-23/2''
       can be used in the hours field to specify  command  execu­
       tion  every other hour (the alternative in the V7 standard
       is ``0,2,4,6,8,10,12,14,16,18,20,22'').   Steps  are  also
       permitted after an asterisk, so if you want to say ``every
       two hours'', just use ``*/2''.

add to /etc/crontab:

1 */6    * * *   root    /etc/cron.daily/find

Mirek


Reply to: