crontab的問題 每個月的第一個星期日 - Linux

Table of Contents



剛剛遇到一個問題 就是如果要設定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

--

All Comments

Iris avatarIris2008-06-27
* * * */1 0 user command
Agatha avatarAgatha2008-06-30
沒看仔細.. 上面是每個月的 "每個星期日" 都會執行
Frederica avatarFrederica2008-07-03
http://tinyurl.com/5ok722 這頁最下方有個可以的範例
Odelette avatarOdelette2008-07-04
感謝樓上a大大 我會來試試看的 謝謝
Candice avatarCandice2008-07-08
Try過已經成功了 :D 感恩!