<?xml version="1.0"?>
<item id="552">
  <title>notification from command line</title>
  <description>

  <p>
    I read <a href="http://liw.iki.fi/liw/log/2005-05.html#20050528b">Lars' wish</a> on Debian Planet today.  I such situations I normally use 
    the command line tool "beep" (debian package "beep") to produce an audio notification when
    the job completes.
  </p>
  
  <p>If you leave the room for a few minutes you could miss the notification, though, so I can see
  that a visual reminder would be helpful as well.</p>

  <p>This resulting python script <a href="/~jdhildeb/software/scripts/notify">is here</a>.  I recommend installing 
  "beep" and "python2.3-gtk2" to get full functionality.</p>

  <p>It would be nice to put  an icon or message 
     in the notification area but it appears that there are no python bindings available for doing this at the moment.
     However, <a href="http://packages.debian.org/experimental/source/gnome-python-extras">it appears that this will be available</a> once Gnome 2.10
     hits unstable, so I'll plan to add an option for this at that point.</p>

  <p>In your .bashrc, I recommend making an alias with your favourite options, such as
    <pre>
$ alias notify='notify -p -b --'
    </pre>
    so that you can simply do
    <pre>
$ notify make foo
    </pre>
  </p>

  <p><b>Update:</b> here's the help:
    <pre>
usage: notify [options] -- command [arg1] [arg2] ...

options:
  -h, --help   show this help message and exit
  -p, --popup  Pop up dialog when command exits
  -b, --beep   Beep PC Speaker when command exits
    </pre>
  </p>
  
  </description>

  <category>Gnome</category>
  <category>Unix</category>
  <category>Debian</category>
  <category>Python</category>
<pubDate seconds="1117303629.07">2005-05-28T13:07:09-07:00</pubDate><comment-count>287</comment-count><trackback-count>117</trackback-count></item>
