作者Tomcat (我想我疯了)
看板Linux
标题[问题] crontab的问题 每个月的第一个星期日
时间Thu Jun 26 23:03:35 2008
刚刚遇到一个问题 就是如果要设定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
1F:推 aeolus0829:* * * */1 0 user command 06/27 08:27
2F:→ aeolus0829:没看仔细.. 上面是每个月的 "每个星期日" 都会执行 06/27 08:28
4F:→ Tomcat:感谢楼上a大大 我会来试试看的 谢谢 06/27 10:58
5F:→ Tomcat:Try过已经成功了 :D 感恩! 06/28 15:31