Differences between revisions 4 and 13 (spanning 9 versions)
Revision 4 as of 2008-03-14 22:44:49
Size: 1272
Comment: added ToDo (need merge)
Revision 13 as of 2020-03-18 14:22:39
Size: 2082
Comment: add link to cron, which has lots of debian specific interesting info.
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## Auto-converted by kwiki2moinmoin v2005-10-07 ## page was renamed from CronAnacronAtBatchSchedulers
#language en
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English - [[it/CronAnacronAtBatchSchedulers|Italiano]] - [[ru/CronAnacronAtBatchSchedulers|Русский]]-~
Line 3: Line 5:
ToDo: need merge with CronAtBatchSchedulers DebPkg:cron, DebPkg:anacron and DebPkg:at are system processes used for periodic command execution.
Line 5: Line 7:
'''cron''', '''at''' and '''anacron''' are system processes used for periodic command execution. cron and at differ in one respect. cron is based on an absolute timetable whereas at is relative. For example, a cron entry would execute a command every Thursday in February. An at entry would run a specific command exactly 23 hours and 17 minutes from now.
Line 7: Line 9:
'''cron''' and '''at''' differ in one respect. '''cron''' is based on an absolute timetable whereas '''at''' is relative. For example, a '''cron''' entry would execute a command every Thursday in February. An '''at''' entry would run a specific command exactly 23 hours and 17 minutes from now.
Line 9: Line 10:
'''It's also worth mentioning DebPkg:anacron here, as well.''' '''anacron''' allows tasks to be scheduled and performed when the system is not running 24 hours a day, 7 days a week. <<TableOfContents(2)>>
Line 11: Line 12:
Debian comes with several housekeeping '''cron''' entries enabled by default. Each of these entries may be viewed by logging in as the appropriate user (likely root) and running the '''crontab''' command. = cron =
Line 13: Line 14:
Any user may view the system's scheduled tasks by looking at the /etc/crontab file:
{{{
 $ cat /etc/crontab
}}}
Debian comes with several housekeeping cron entries enabled by default. Each of these entries may be viewed by logging in as the appropriate user (likely root) and running the {{{crontab}}} command.
Line 18: Line 16:
and the anacron scheduled tasks in the /etc/anacrontab file: Any user may view the __system__'s scheduled tasks by looking at the files {{{/etc/crontab}}} and {{{/etc/cron.*/}}}

See:
 * [[DebianMan:1/crontab|crontab(1)]] - tool to maintain crontab files for individual users
 * [[DebianMan:5/crontab|crontab(5)]] - syntax of tables for driving cron

= anacron =

It's also worth mentioning anacron here, as well. anacron allows tasks to be scheduled and performed when the system is not running 24 hours a day, 7 days a week (It's installed by default by Debian-Installer on laptops, and with the desktops task).

Any user may view the system's scheduled tasks by looking at the {{{/etc/anacrontab }}}file:
Line 23: Line 31:
Debian does not come with any '''at''' entries enabled on a standard installation. To view any '''at''' entries that you have submitted, use the '''atq''' command. See:
 * [[DebianMan:5/anacrontab|anacrontab(5)]] - configuration file for anacron
 * [[DebianMan:8/anacron|anacron(8)]] - runs commands periodically

= at =
{{{at}}} (and {{{batch}}}) execute a command at a later time (once). Debian does not come with any at entries enabled on a standard installation.

To view any at entries that you have submitted, use the {{{atq}}} command.

See:
 * [[DebianMan:1/at|at(1)]] - manpage

== See also ==
 [[cron]] - Time-based job scheduling in Debian

----

CategorySystemAdministration

Translation(s): English - Italiano - Русский

cron, anacron and at are system processes used for periodic command execution.

cron and at differ in one respect. cron is based on an absolute timetable whereas at is relative. For example, a cron entry would execute a command every Thursday in February. An at entry would run a specific command exactly 23 hours and 17 minutes from now.

cron

Debian comes with several housekeeping cron entries enabled by default. Each of these entries may be viewed by logging in as the appropriate user (likely root) and running the crontab command.

Any user may view the system's scheduled tasks by looking at the files /etc/crontab and /etc/cron.*/

See:

  • crontab(1) - tool to maintain crontab files for individual users

  • crontab(5) - syntax of tables for driving cron

anacron

It's also worth mentioning anacron here, as well. anacron allows tasks to be scheduled and performed when the system is not running 24 hours a day, 7 days a week (It's installed by default by Debian-Installer on laptops, and with the desktops task).

Any user may view the system's scheduled tasks by looking at the /etc/anacrontab file:

 $ cat /etc/anacrontab

See:

at

at (and batch) execute a command at a later time (once). Debian does not come with any at entries enabled on a standard installation.

To view any at entries that you have submitted, use the atq command.

See:

See also

  • cron - Time-based job scheduling in Debian


CategorySystemAdministration