Anacron

Anacron

Anacron is a computer program that performs periodic command scheduling which is traditionally done by cron, but without assuming that the system is running continuously. Thus, it can be used to control the execution of daily, weekly, and monthly jobs (or anything with a period of n days), on systems that don't run 24 hours a day. Anacron was originally conceived and implemented by Christian Schwarz in Perl, for the Unix operating system. The current implementation, in C, was written by Itai Tzur and is actively maintained by Sean 'Shaleh' Perry.

Advantages

Most Unix systems are set up to run "housekeeping chores" such as log-rotation, unused files deletion, indexing local files for the search engine, etc.With cron, often these tasks are scheduled to be executed overnight or another low-usage time to avoid straining the system. If the system is turned off at the time a given task should have been run, it will not be executed for that iteration.

In contrast, Anacron makes sure that these commands are run at the specified intervals as closely as machine uptime permits.

Drawbacks

Only the system administrator can configure anacron tasks. In contrast, cron allows non-admin users to configure scheduled tasks. If necessary, a non-admin user can use the at Unix command to request a scheduled task (which is guaranteed to run). Upon starting, this command can then automatically request to run itself at a future date, thus giving the appearance of a regularly scheduled task, with guaranteed execution.

Anacron can only run tasks once a day (or less often such as weekly or monthly). In contrast, cron allows tasks to run as often as every minute (but does not guarantee their execution if the system goes down). In practice, this is not usually an issue, since it is rare to have a task that must be guaranteed to run more often than (at least) once a day - especially on a system that is not necessarily running at all times.

If the system is rebooted or started after midnight, the daily tasks are run immediately (after a delay, usually 5 minutes), which can consume system resources that are needed by the user, who has just started the machine, and is presumably expecting to do work. In contrast cron will only run daily tasks at the set time in the middle of the night (presumably when the machine is not being used).

See also

* List of Unix programs

External links

* [http://anacron.sourceforge.net/ Anacron on SourceForge]
*
* [http://linux.die.net/man/8/anacron anacron(8)] – Linux Programmer's Manual (alternative link)


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Anacron — Anacron  (англ. anachronistic cron) асинхронный или анахроничный cron. Anacron в отличие от cron не поддерживает запуск заданий по расписанию, вместо этого задания запускаются с заданым интервалом времени. Это очень удобно для систем… …   Википедия

  • Anacron — ist ein Computerprogramm ähnlich cron, das allerdings nicht voraussetzt, dass der Computer rund um die Uhr läuft. Anacron kann Jobs z.B. jede Stunde, jeden Tag, jede Woche etc. ausführen, auch wenn der Computer nicht ununterbrochen läuft. Die… …   Deutsch Wikipedia

  • Anacron — est un programme informatique qui permet l exécution de tâches quotidiennes, hebdomadaires ou mensuelles sur un système Unix. À la différence de cron, il ne suppose pas que la machine tourne en permanence. En conséquence, il peut être utilisé sur …   Wikipédia en Français

  • anacron — est un programme informatique qui permet l exécution de tâches quotidiennes, hebdomadaires ou mensuelles sur un système Unix. À la différence de cron, il ne suppose pas que la machine tourne en permanence. En conséquence, il peut être utilisé sur …   Wikipédia en Français

  • cron — Содержание 1 Замена текстового редактора для crontab 2 crontab …   Википедия

  • Fcron — est un outil sous licence GPL qui a pour but de remplacer le couple Vixie cron Anacron, et d en faire un unique logiciel intégré. Il apporte de nombreuses fonctionnalités absentes du démon (daemon) cron originel. Les commandes utilisateurs de… …   Wikipédia en Français

  • fcron — est un outil sous licence GPL qui a pour but de remplacer le couple Vixie cron Anacron, et d en faire un unique logiciel intégré. Il apporte de nombreuses fonctionnalités absentes du démon (daemon) cron originel. Les commandes utilisateurs de… …   Wikipédia en Français

  • cron — For other uses, see CRON (disambiguation). Cron is a time based job scheduler in Unix like computer operating systems. Cron enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates. It is commonly… …   Wikipedia

  • Cron — is a time based scheduling service in Unix like computer operating systems. cron is short for chronograph . [ [http://drupal.org/node/937#cron Drupal Terminology Page] ] cron has been recreated several times in its history. Design cron is driven… …   Wikipedia

  • Cron — демон планировщик задач в UNIX подобных операционных системах, использующийся для периодического выполнения заданий в заданное время. Содержание 1 crontab 2 Графический интерфейс 2.1 Gnome Schedule …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”