ææ«ã«cronãå®è¡ãããã¨æãcrontabã«è¨å®ãæ¸ããã¨ããã¨ãããæåã®ããã«åç´ã«ã¯æ¸ããªããã¨ã«æ°ã¥ãã¾ããã æåã ã¨ä»¥ä¸ã®ããã«ãæ¯æ1æ¥ã«ãã¨æ¸ãã°ããã®ã§ããã 0ã0ã1 * * å®è¡ãããã³ãã³ãææ«ã¯30æ¥ã®å ´åãããã2æã¯ãããå¹´ãèæ ®ããå¿ è¦ãããã¾ãã 調ã¹ã¦ã¿ããã¨ããtestã³ãã³ãã¨dateã³ãã³ããçµã¿åããã¦ã28æ¥ãã31æ¥ã®éã§ç¿æ¥ã1æ¥ã ã£ããå®è¡ãããã¨ããè¨å®ãæ¸ãã°ããã¿ããã§ããã 0ã0ã28-31 * * /usr/bin/test $(date -d '+1 day' +%d) -eq 1 && å®è¡ãããã³ãã³ãåå¼·ã«ãªãã¾ããã åècrontabã®æ¸ãæ¹ | server-memo.netLinux - testã³ãã³ãã¨cronãçµã¿åãããææ«ã«ããããåãã - Qiita


{{#tags}}- {{label}}
{{/tags}}