notify-when-up is now deprecated; please use notify-when-up2 instead unless you encounter a specific problem in version 2 and need something to fall back on.
notify-when-up is a simple script that periodically checks for an event, and then notifies you the event has occured. Originally for checking when a port becomes active on a machine, it's since been extended to do many different sorts of one-off event monitoring in a convenient to use way.

Notification methods so far include:

  1. A log message in your home directory (if you have write access to your home directory)
  2. A message on the current tty
  3. An e-mail message (by default to username@current.machine.com, but this can be overridden with -e or setting $NWUEMAIL to an e-mail address)
  4. A little pygtk window
Installation:
  1. Copy notify-when-up to somewhere on your $PATH - often ~/bin/notify-when-up is good.
  2. Make the notify-when-up script executable, EG:
  3. Install pdialog.py somewhere on your python path, or in ~/lib/pdialog.py
  4. If you don't already have python installed, go get it. It's well worth your while. Nearly all Linuxes come with python these days, and the developer install of Solaris 10 includes it as well (IMO it should come with all versions of Solaris 10).

  • This software is owned by The university of California, Irvine - not any version of the GPL. GPL is a fine series of licenses, but the owners of the software need it to be distributed under these terms.

  • Here are some examples of using notify-when-up: