How can I notify all online (Desktop) users from the command-line?

I know that if I want that I get notified when something is done, I just do like this:

sudo apt-get update | notify-send "apt-get update" "update finished"

What should I use to notify all users (or some specific user)?


You can try wall. On my KDE machine, a small panel pops up with the message sent with wall. Of course, the message also appears in all terminals, but maybe your users do not have a terminal open. Example:

echo "It is 9 o'clock and all is well." | wall
  • wall -- send a message to everybodys terminal. I tryed it and it only send messages to terminal... on my desktop doesn't apear any message... Maybe CentOS work in a different way? – Wolfy Jun 15 '11 at 6:28
  • Interesting that KDE catches those, but Gnome doesn't seem to, nor do other more basic window managers. However, there is almost always a notification API of some kind, the question is how to reliable access it across all users! – Caleb Jun 15 '11 at 11:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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