<aside> 🐧

Cron


Syntax


[λΆ„] [μ‹œ] [일] [μ›”] [μš”μΌ]

Field Value Wildcards
λΆ„ 0 ~ 59 , - * /
μ‹œ 0 ~ 23 , - * /
일 1 ~ 31 , - * ? / L W
μ›” 1 ~ 12 , - * /
μš”μΌ 0 ~ 6 , - * ? L #
λ…„ 1970 ~ 2199 , - * /

WildCard

Wildcards Meaning Example
* (asterisk) includes all values in the field " * * * * *" λŠ” λ§€ λΆ„ λ§€ μ‹œκ°„ 맀일 λ§€μ›” λ§€μš”μΌμ— ν•΄λ‹Ήν•˜λŠ” λͺ¨λ“  값을 λ‚˜νƒ€λƒ…λ‹ˆλ‹€.
/ (forward slash) a step value "*/5"λŠ” 5λΆ„λ§ˆλ‹€ ν•œ λ²ˆμ”©μ„ λ‚˜νƒ€λƒ…λ‹ˆλ‹€.
, (comma) a list of values "0,15,30,45"λŠ” 0, 15, 30 및 45λ₯Ό λ‚˜νƒ€λƒ…λ‹ˆλ‹€.
- (dash) a range of values "1-5"λŠ” 1λΆ€ν„° 5κΉŒμ§€μ˜ 값을 λ‚˜νƒ€λƒ…λ‹ˆλ‹€.
? (question mark) no specific value in the days of the week field when the day of the month is specified (or vice versa)
L the last occurrence of a day of the week or month
W the nearest weekday to a given day of the month

30 2 * * *

"0 0 * * 0"

"*/15 * * * *"

0 17 * * *

0 0 1 * *

0 9 * * 1-5

30 * * * *

0 23 L * *

30 8 * * 1,3

0 8-17 * * *

0 6 1,15 * *

0 0 1 */3 *

0 7 25 12 *

</aside>