CartMetrix - Do you know yours?

« Chkrootkit Grep | Home | Virtual IPs Under OSX »

11/13/2006

iTerm and Growl

Recent versions of iTerm support Growl notifications. iTerm shows how to initiate Growl events from the command line with:

make; echo $'\e]9;make done\007'

The example shows how to get an alert after a long make. I know I would never remember that command so I wrote a little Bash user defined function to do the same. Add this to your .bashrc file:

growl() { echo -e $'\e]9;'${1}'\007' ; return  ; }

Now the command to initiate a notification would be:

make; growl "make done"

Popularity: 73%

Trackback:

Related Posts

4 Responses to “iTerm and Growl”

  1. David said:

    Alas, it does not work under GNU Screen

  2. damonp said:

    Would it have something to do with the terminal type?

    From the manpage:

    Each virtual terminal provides the functions of a DEC VT100 terminal

  3. oudeis said:

    If you want more control or use a different terminal app, you may want to look at growlnotify:
    http://growl.info/documentation/growlnotify.php

  4. avdempsey said:

    Works great, good tip. Now, I’m gonna have to figure out how to make growl notifications work for remote jobs.

Post your opinion

Verification Image

Please type the letters you see in the picture.

Subscribe without commenting


damonparker.org is proudly powered by WordPress
Entries (RSS) and Comments (RSS).

copyright © 2002-2008 damonparker.org. all rights reserved.

Close
E-mail It