Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

5 Answers 5

up vote 20 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).

share|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
2  
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
    
I would like to add that notify-osd in Ubuntu (which displays notify-send notifications) has a couple of -horrible- bugs (called "features", seriously) including being unable to set the timeout (even though the -t parameter is documented in notify-send) on bubbles and not being able to show multiple bubbles at once. For me, this renders notify-osd unusable and while there are patches available, I'm looking for an alternative. This is currently the best fit for me: omgubuntu.co.uk/2012/03/… –  Jaap Haagmans Jan 17 at 14:46

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

share|improve this answer
    
This is only the growl daemon, it doesn't include the growlnotify command. What is a growl client for linux that can send growl messages? –  Will Sheppard Nov 6 '13 at 12:34

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.

share|improve this answer

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".

share|improve this answer

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

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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