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