紫風亂寫

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

          Using crontab to notify

          Posted on 2010-09-28 15:49 Justfly Shi 閱讀(369) 評論(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!
          主站蜘蛛池模板: 安龙县| 和静县| 东明县| 彰武县| 深泽县| 含山县| 陵水| 吉水县| 遵义市| 齐齐哈尔市| 阜阳市| 中卫市| 资中县| 永吉县| 普定县| 班玛县| 化德县| 平和县| 陆河县| 惠东县| 岱山县| 济宁市| 通江县| 忻州市| 鹤山市| 郎溪县| 苏尼特左旗| 济阳县| 广宁县| 衡南县| 鲁山县| 孝感市| 闽清县| 水城县| 靖江市| 中宁县| 昆山市| 那坡县| 津南区| 蛟河市| 六安市|