[Linux] crontabã§å©ç¨ã§ããç¹æ®æååï¼æ¥ææå®ï¼
ç¹å®å¦çã®å®æå®è¡ãããcrontabã®æ¸å¼ã¯ä»¥ä¸ã®ããã«ãªã£ã¦ãã¾ãã
åãæãæ¥ãæãææ¥ãã³ãã³ã
ã§ããããã®å®è¡æ¥ææå®ã§ã¯ã"ããå©ç¨ãããæ¥æã®ã·ã§ã¼ãã«ãã"ã§ããç¹æ®æååãå©ç¨ãããã¨ãã§ãã¾ãã
ãã®ç¹æ®æååã¯ä»¥ä¸ã®ããã«ãªã£ã¦ãã¾ãã
@reboot | èµ·åæã«ä¸åº¦ã ãå®è¡ã | ||
@yearly | å¹´ã«ä¸åº¦ã ãå®è¡ ("0 0 1 1 *" ã¨ç価)ã | ||
@annually | (@yearly ã¨åæ§) | ||
@monthly | æã«ä¸åº¦ã ãå®è¡ ("0 0 1 * *" ã¨ç価)ã | ||
@weekly | é±ã«ä¸åº¦ã ãå®è¡ ("0 0 * * 0" ã¨ç価)ã | ||
@daily | ä¸æ¥ã«ä¸åº¦ã ãå®è¡ ("0 0 * * *" ã¨ç価)ã | ||
@midnight | (@daily ã¨åæ§) | ||
@hourly | ä¸æéã«ä¸åº¦ã ãå®è¡ ("0 * * * *" ã¨ç価)ã |
ä¸è¨ã®ç¹æ®æååãå©ç¨ãã¦crontabã®è¨å®ãæ¸ãã¨ä»¥ä¸ã®ããã«ãªãã¾ãã
@monthly ã³ãã³ã
â»ä»¥ä¸ã¨åç
0 0 1 * * * ã³ãã³ã
ã¡ãªã¿ã«è©³ç´°ã¯manã§ç¢ºèªãããã¨ãã§ãã¾ãã®ã§ã
$ man 5 crontab