CRON expression

CRON expression

A CRON expression is a string comprised of 6 or 7 fields separated by white space [ [http://wiki.pentaho.com/display/PentahoDoc/05.+CRON+Expressions+in+Detail 05. CRON Expressions in Detail - Pentaho Wiki ] ] that represents a set of times, normally as a schedule to execute some routine. It is used primarily by the UNIX tool "cron".

Format

{| class="wikitable"
-! Field name! Mandatory?! Allowed values! Allowed special characters
-
Seconds
Yes
0-59
* / , -
-|

pecial Characters

Asterisk (*)

The asterisk indicates that any value for the field is acceptable. For example, using an asterisk in the 5th field (month) would indicate every month.

Forward slashes (/)

Forward slashes are used to describe increments. For example 0/15 in the 1st field (seconds) would indicate the 0th second of the minute and every 15 seconds thereafter.

Commas (,)

Commas are used to separate items of a list. For example, using "MON,WED,FRI" in the 6th field (day of week) would mean Mondays, Wednesdays and Fridays.

Hyphen (-)

Hyphens denote ranges. For example, 2000-2010 would indicate every year between 2000 and 2010 CE inclusive.

Examples

Every second

* * * * * *

Every minute

0 * * * * *

23:00 every weekday night

0 0 23 ? * MON-FRI

In 2003 CE on the 11th to 16th of each month in January to June every third minute starting from 2 past 1am, 9am and 10pm

0 2/3 1,9,22 11-26 1-6 ? 2003

References


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • 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

  • Mi-Carême au Carnaval de Paris — 15 mars 2009, 1re édition de la Mi Carême depuis 70 ans à Paris, ressorti sous le nom de « Carnaval des Femmes ». Mot d ordre : « Les hommes en femmes, s ils osent, et les femmes en reines ». Le costume et le suivi du mot …   Wikipédia en Français

  • List of ReBoot characters — This is a list of characters from the animated television series, ReBoot. With the exception of a few characters, such as Bob, most ReBoot characters are named after technical computer terms or pieces of computer hardware.[verification needed]… …   Wikipedia

  • AWK — This article is about the programming language. For other uses, see AWK (disambiguation). AWK Paradigm(s) scripting, procedural, event driven Appeared in 1977 Designed by Alfred Aho, Peter Weinberger, and Brian Kernighan …   Wikipedia

  • NOM — L’analyse grammaticale distinguait les noms communs et les noms propres. Les premiers correspondent, selon l’analyse logique classique, aux termes généraux qui se disent de plusieurs, et les seconds aux termes singuliers qui ne se disent que d’un …   Encyclopédie Universelle

  • mollesse — [ mɔlɛs ] n. f. • molece 1190; de mol, mou A ♦ (Abstrait) Caractère de ce qui est mou, sans énergie. 1 ♦ Paresse physique, intellectuelle; manque de volonté. ⇒ apathie, indolence, langueur, nonchalance, paresse, somnolence. La mollesse d un élève …   Encyclopédie Universelle

  • AKT2 — V akt murine thymoma viral oncogene homolog 2, also known as AKT2, is a human gene. PBB Summary section title = summary text = This gene is a putative oncogene encoding a protein belonging to a subfamily of serine/threonine kinases containing SH2 …   Wikipedia

  • PPP2R3A — Protein phosphatase 2 (formerly 2A), regulatory subunit B , alpha, also known as PPP2R3A, is a human gene.cite web | title = Entrez Gene: PPP2R3A protein phosphatase 2 (formerly 2A), regulatory subunit B , alpha| url =… …   Wikipedia

  • AKT3 — V akt murine thymoma viral oncogene homolog 3 (protein kinase B, gamma), also known as AKT3, is a human gene. PBB Summary section title = summary text = The protein encoded by this gene is a member of the AKT, also called PKB, serine/threonine… …   Wikipedia

  • glisser — [ glise ] v. <conjug. : 1> • glicier 1190; altér. a. fr. gliier, du frq. °glidan, par infl. de glacier, a. forme de glacer I ♦ V. intr. 1 ♦ Se déplacer d un mouvement continu, volontaire ou non, sur une surface lisse ou le long d un autre… …   Encyclopédie Universelle

Share the article and excerpts

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