The Cron software utility is a time task scheduler on Unix-like computer operating systems. Users who configure and maintain software environments use Cron to schedule jobs (commands or shell scripts) to run periodically at specific times, dates, or intervals. It usually automates the maintenance or administration of the system, although its universal nature makes it useful for things such as downloading files from the Internet and updating e-mail at regular intervals. The origin of the name cron from the Greek word "in time" is ΟΟΟΞ½ΞΏΟ (chronos).
Application
Cron . , Cron . , Drupal, Cron . .
, Cron, . , , e-mail.
. , . . Crontab , .
Cron Crontab (cron table) β , . Crontab , . Crontab-, .
. Crontab :
# ββββββββββββββ minute (0 - 59)
# β ββββββββββββββ hour (0 - 23)
# β β ββββββββββββββ day of month (1 - 31)
# β β β ββββββββββββββ month (1 - 12)
# β β β β ββββββββββββββ day of week (0 - 6) (Sunday to Saturday;
# β β β β β 7 is also Sunday on some systems)
# β β β β β
# β β β β β
# * * * * * command to execute
Cron, .
, / , : Β« Β» ( 3) Β« Β» ( 5) , .
, Apache (00:01) : 10 * * * printf > /var/log/apache/error_log.
Crontab export_dump.sh 23:45 (23:45) .
, , .
Freebsd Crontab:
Cron : , ( ).
Linux Cron. Cron , , , .
Cron 15- , .
Crontab :
@reboot , , init .
Crontab
:
(',') : "1,3,4,7,8".
('-') , : Β«1-6Β», Β«1,2,3,4,5,6Β».
Asterisk ('*') . Β« Β».
slash ('/'), . , Β«*/3Β» Β«0,3,6,9,12,15,18,21Β». "\*" Β« Β», Β«/3Β» , , , , . .
Crontab:
Cron Crontab , . , . , Cron Β«CRON_TZ = < Β», crontab .
Cron
Cron :
, Cron, . , Cron.
Crontab?
. Cron Jobs cPanel .
Cron:
Cron , .
Cron: