紫風亂寫

          除了他眼前的屏幕,這個人什么也沒看見。
          被周圍的電腦簇擁著,他只知道他所創造的現實,但又意識到那是虛幻。
          他已經超越了技術。也超越了機器。
          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!
          主站蜘蛛池模板: 博乐市| 嘉义市| 雷州市| 新平| 普安县| 曲水县| 平陆县| 遂溪县| 包头市| 淮南市| 南华县| 麟游县| 台北县| 黄山市| 孝昌县| 南雄市| 台东市| 高清| 承德市| 晋城| 平罗县| 伊宁市| 龙门县| 湖北省| 海安县| 通化县| 于田县| 清水县| 宜春市| 建平县| 绥德县| 峡江县| 昭苏县| 崇明县| 卓尼县| 盘山县| 连江县| 肥城市| 平塘县| 玛曲县| 克拉玛依市|