隨筆 - 64  文章 - 9  trackbacks - 0
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(6)

          我參與的團(tuán)隊(duì)

          隨筆分類(88)

          隨筆檔案(92)

          文章分類(142)

          文章檔案(182)

          天基成員

          學(xué)習(xí)園

          我的海角

          搜索

          •  

          積分與排名

          • 積分 - 183418
          • 排名 - 319

          最新評(píng)論

          crontab文件的一些例子:

          30 21 * * * /usr/local/etc/rc.d/lighttpd restart
          上面的例子表示每晚的21:30重啟apache。

          45 4 1,10,22 * * /usr/local/etc/rc.d/lighttpd restart
          上面的例子表示每月1、10、22日的4 : 45重啟apache。

          10 1 * * 6,0 /usr/local/etc/rc.d/lighttpd restart
          上面的例子表示每周六、周日的1 : 10重啟apache。

          0,30 18-23 * * * /usr/local/etc/rc.d/lighttpd restart
          上面的例子表示在每天18 : 00至23 : 00之間每隔30分鐘重啟apache。

          0 23 * * 6 /usr/local/etc/rc.d/lighttpd restart
          上面的例子表示每星期六的11 : 00 pm重啟apache。

          * */1 * * * /usr/local/etc/rc.d/lighttpd restart
          每一小時(shí)重啟apache

          * 23-7/1 * * * /usr/local/etc/rc.d/lighttpd restart
          晚上11點(diǎn)到早上7點(diǎn)之間,每隔一小時(shí)重啟apache

          0 11 4 * mon-wed /usr/local/etc/rc.d/lighttpd restart
          每月的4號(hào)與每周一到周三的11點(diǎn)重啟apache

          0 4 1 jan * /usr/local/etc/rc.d/lighttpd restart
          一月一號(hào)的4點(diǎn)重啟apache

           

          名稱 : crontab

          使用權(quán)限 : 所有使用者

          使用方式 :

          crontab file [-u user]-用指定的文件替代目前的crontab。

          crontab-[-u user]-用標(biāo)準(zhǔn)輸入替代目前的crontab.

          crontab-1[user]-列出用戶目前的crontab.

          crontab-e[user]-編輯用戶目前的crontab.

          crontab-d[user]-刪除用戶目前的crontab.

          crontab-c dir- 指定crontab的目錄。

          crontab文件的格式:M H D m d cmd.

           

          posted on 2010-01-13 13:24 鵬凌 閱讀(339) 評(píng)論(0)  編輯  收藏 所屬分類: linux
          主站蜘蛛池模板: 四会市| 西安市| 湘西| 沈丘县| 雅安市| 山西省| 仪陇县| 德化县| 红安县| 合阳县| 澎湖县| 嵊州市| 获嘉县| 剑川县| 靖远县| 雷波县| 筠连县| 广汉市| 小金县| 舞钢市| 崇阳县| 穆棱市| 珲春市| 怀来县| 钦州市| 长汀县| 喀喇| 钟祥市| 沛县| 龙川县| 红桥区| 兴安县| 苏尼特右旗| 内丘县| 长沙市| 筠连县| 文山县| 裕民县| 扎赉特旗| 彭泽县| 米易县|