Thursday, May 2, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 474  / 2 Years ago, sun, january 9, 2022, 2:10:13

I've heard about notify-send of libnotify-bin, but it only seems purposed for GUI desktops.



Is there a simpler counterpart that's just for consoles? Similar to the warning/notification we get when Ubuntu is shutdown or reboot.


More From » notification

 Answers
4

The venerable write and wall commands do what you are looking for.



write user [tty]


will echo whatever it reads from stdin to the terminal that user is using, or to a specific terminal.



The wall command (w rite to all) notifies all console users at once. This is the command used by shutdown.


[#29145] Sunday, January 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
calcur

Total Points: 189
Total Questions: 80
Total Answers: 95

Location: Burkina Faso
Member since Thu, Dec 15, 2022
1 Year ago
;