Differences between revisions 5 and 7 (spanning 2 versions)
Revision 5 as of 2008-03-14 23:00:10
Size: 1792
Comment: added some material. not complete
Revision 7 as of 2010-03-13 15:38:56
Size: 2122
Editor: FranklinPiat
Comment: Add link to manpage, plus minor improvements
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
||<tablestyle="width: 100%;" style="border: 0px hidden">~-[:DebianWiki/EditorGuide#translation:Translation(s)]: none-~||<style="text-align: right;border: 0px hidden"> (!) [:/Discussion:Discussion]|| ||<tablestyle="width: 100%;" style="border: 0px hidden">~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: none-~||<style="text-align: right;border: 0px hidden"> (!) [[/Discussion|Discussion]]||
Line 4: Line 4:
ToDo: need merge with CronAtBatchSchedulers. Not complete
Line 11: Line 10:
[[TableOfContents(2)]] <<TableOfContents(2)>>
Line 17: Line 16:
Any user may view the system's scheduled tasks by looking at the /etc/crontab file:
{{{
 $ cat
/etc/crontab
}}}
Any user may view the __system__'s scheduled tasks by looking at the files {{{/etc/crontab}}} and {{{/etc/cron.*/}}}
Line 22: Line 18:
== Editing per user crontab ==

''to complete''

== System crontabs ==

 * {{{/etc/crontab}}}
 * {{{/etc/cron.*/}}}

''to complete''
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
Line 35: Line 24:
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 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).
Line 42: Line 31:
See:
 * [[DebianMan:5/anacrontab|anacrontab(5)]] - configuration file for anacron
 * [[DebianMan:8/anacron|anacron(8)]] - runs commands periodically
Line 43: Line 36:
{{{at}}} (and {{{batch}}}) execute a command at a later time (once). Debian does not come with any at entries enabled on a standard installation.
Line 44: Line 38:
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. To view any at entries that you have submitted, use the {{{atq}}} command.
Line 46: Line 40:
See:
 * [[DebianMan:1/at|at(1)]] manpage

Translation(s): none

(!) ?Discussion


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.

Contents

  1. cron
  2. anacron
  3. at

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: