Skip to content

Linux medication reminder

by Ofir on July 22nd, 2009

I’m having eye surgery done next Friday and the doctor prescribed me antibacterial eye drops every two hours during the two days before the procedure. Since I’m in front of the computer for most part of my day, I thought it would be very useful to have an on-screen reminder, and using Ubuntu’s notify-send and crontab, it was quite easy to set up.

I just added the following line to my crontab:

0 09,11,13,15,17,19 * * * env DISPLAY=:0.0 notify-send -i /usr/share/icons/gnome/scalable/emblems/emblem-urgent.svg "Apply your eye drops\!" "It's `date +%H:%M`"

And it now displays a nice reminder with an icon at the top of the screen every two hours from 9am to 7pm telling me to apply my drops :) . If you want the notification to stay up until you dismiss it, in case you’re away from your computer at the moment the message pops up, just add the -t 0 option to the notify-send command.

Try doing that in Windows using one line only!

Share or bookmark this post:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Twitter

From → linux

3 Comments
  1. netoxico permalink

    Good job ofir, I hope not to be sick to try it :)

  2. In Windows you don’t use one line, you use sw. much better =D but also you need a serial/crack =D that’s freewareeee!

    Can linux do that? xD

  3. Carlos Mondragón permalink

    Geek as hell, but useful as well

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS