I want to write scripts on Ubuntu that will notify the user through a tool analogous to Growl on OS X (specifically, the growlnotify command-line tool). What's the equivalent tool on Linux called?

link|improve this question

feedback

5 Answers

up vote 7 down vote accepted

Ubuntu can show notifications, which seem to be equivalent to Growl. It is accessible through DBus (for programs) and through the notify-send command (for shell scripts).

link|improve this answer
1  
And how does it work, what's the growlnotify equivalent? – Daniel Beck Jan 19 '11 at 22:06
I think it's possible to send notifications from the command line, but I can't seem to find the exact command. – Manu Jan 19 '11 at 22:07
I believe the command is notify-send : ubuntuforums.org/showthread.php?t=642997 – Manu Jan 19 '11 at 22:10
1  
Now it's a useful answer ;-) Try editing your answer to incorporate that information. Also the zenity and knotify mentions on the forum are probably worth looking into. – Daniel Beck Jan 19 '11 at 22:12
feedback

if you are using KDE, it is real easy! just use the kdialog command that is built-in to KDE, as in the example below:

kdialog --passivepopup "Example text"

if you happen to be using plain ubuntu, then you need to install the libnotify-bin package by issuing the following command:

sudo apt-get install libnotify-bin

and then you can send messages with like this:

notify-send "Example text"

the kdialog is a bit more interesting because it does way more than just send notifications from the command-line. you can actually build an interactive gui for your bash programs with it!

anyway, i hope this helps.

link|improve this answer
feedback

There is a Growl port for Linux. Found here: Growl-for-linux

link|improve this answer
feedback

This link shows how to do something similar using Ghosd and Perl. I hope this helps.

link|improve this answer
Is there any standard tool of this sort that comes pre-installed on Gnome or KDE? – dan Jan 19 '11 at 22:04
I don't think so... I think if there was, I wouldn't had to of resort to that link when I was Google-ing for 30 minutes trying help you... Sorry for that information. Maybe someone else might be able to shine some light on this topic. I'm not that much of a Linux guru either. – David Jan 20 '11 at 13:40
feedback

Linux, being the beast it is, supports a number of notification applications that can be used to achieve this. A quick "alternativeto.net" search resulted in the promising "notifyOSD" by canonical (mentioned in a previous reply) and "notifo".

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.