紫風亂寫

          除了他眼前的屏幕,這個人什么也沒看見。
          被周圍的電腦簇擁著,他只知道他所創造的現實,但又意識到那是虛幻。
          他已經超越了技術。也超越了機器。
          posts - 62, comments - 93, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          Using crontab to notify

          Posted on 2010-09-28 15:49 Justfly Shi 閱讀(364) 評論(0)  編輯  收藏 所屬分類: tips
          1. test if the command notify-send is installed
          notify-send "Hello"
          If the command is not found, install the required package following the tips
          2. vi notify.sh and input the below content into it.
          #!/bin/bash
          DISPLAY=:0.0 /usr/bin/notify-send -30000 "<b>Take a Break!</b>"
          3. chmod +x notify.sh
          4. crontab -e
          5. add the below content as a new line in the opened file. and then save it
          */45 * * * * /home/jimmy/notify.sh
          6. Done!
          主站蜘蛛池模板: 汝州市| 方正县| 兴宁市| 城固县| 延寿县| 灵川县| 泾川县| 化德县| 商都县| 太仓市| 嘉定区| 西盟| 昭苏县| 临湘市| 武夷山市| 镇巴县| 喜德县| 望奎县| 仲巴县| 双城市| 梅州市| 隆化县| 长泰县| 赫章县| 尼勒克县| 松溪县| 文登市| 沧源| 文安县| 武宁县| 荥阳市| 蕉岭县| 原阳县| 丹江口市| 合江县| 闽侯县| 和龙市| 三河市| 鹤庆县| 龙门县| 天镇县|