Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Sep 2004 13:42:36 -0400
From:      robg <robg.list@gmail.com>
To:        freebsd-newbies@freebsd.org
Subject:   can someone explain crontab to me better?
Message-ID:  <5c389d3b040919104228593a14@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
hi,

i am having a hard time understanding crontab after reading
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-cron.html
.. i still can't understand the minutes/hours...

when you specify minutes, does it mean the command is run every X
minutes? and if you specify a hour AND minutes, the command is run
every X hours for X minutes?  so if i did

*/5 */2 * * * root /usr/libexec/locate.updatedb

it would run that command every two hours for 5 minutes?  so when two
hours comes around, itll keep running that command over and over for 5
minutes? or will it run that command once every 5 minutes for two
hours? im confused

i just want to know the syntax to run something every 2 hours once ..
can someone clarify this

thanks


-- 
robg
robg.list@gmail.com



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