Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Can someone tell me if there is an way to notify all online (Desktop) users from command-line.

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

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

What shoul I use for notify all users (or some specific user)?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

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
share|improve this answer
    
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

 
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.