Eggheads: About crontab
Hielke Hoeve
hielke.hoeve at gmail.com
Sun Dec 4 09:08:55 CST 2005
On 04/12/05, Kobayashi <buraian at sbcglobal.net> wrote:
> can anyone teach me how to set good crontab for eggdrop?
0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58
* * * * /home/user/eggdrop_run
Is my entry and it checks if the eggdrop is running every 2 minutes.
RTFM :D
>hielke at wofri> man crontab
Commands are executed by cron(8) when the minute, hour, and
month of year fields match the current time, and when at least one of
the two day
fields (day of month, or day of week) match the current time
(see ``Note'' below). cron(8) examines cron entries once every
minute. The time and
date fields are:
field allowed values
----- --------------
minute 0-59
hour 0-23
day of month 1-31
month 1-12 (or names, see below)
day of week 0-7 (0 or 7 is Sun, or use names)
A field may be an asterisk (*), which always stands for ``first-last''.
Examples:
# m h dom mon dow user command
42 6 * * * root run-parts --report /etc/cron.daily
47 6 * * 7 root run-parts --report /etc/cron.weekly
52 6 1 * * root run-parts --report /etc/cron.monthly
Almost too easy...
Hielke
More information about the Eggheads
mailing list