回文章列表
作者Tomcat.bbs@ptt.cc (我想我瘋了) 看板: linux
標題[問題] crontab的問題 每個月的第一個星期日
時間批踢踢實業 (2008/06/26 Thu 23:03:37)
剛剛遇到一個問題 就是如果要設定crontab

在每個月的第一個星期日要執行某一段程式碼 要怎麼設定呢?

麻煩各位大大了!!




==============================================================
#man 5 crontab  只查到如下:

       These special time specification "nicknames" are supported, which replace  the  5  initial
       time and date fields, and are prefixed by the ’@’ character:
       @reboot    :    Run once, at startup.
       @yearly    :    Run once a year, ie.  "0 0 1 1 *".
       @annually  :    Run once a year, ie.  "0 0 1 1 *".
       @monthly   :    Run once a month, ie. "0 0 1 * *".
       @weekly    :    Run once a week, ie.  "0 0 * * 0".
       @daily     :    Run once a day, ie.   "0 0 * * *".
       @hourly    :    Run once an hour, ie. "0 * * * *".




--

我的攝影練習簿

http://album.blog.yam.com/cavendish15

--
※ 發信站: 批踢踢實業坊(ptt.cc) 
◆ From: 140.109.230.177
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻