The administrator of a network may often require to send messages to the nodes on the network. Displaying pop-up windows on the user's desktop would be helpful to alert the user with a piece of information. Using a GUI toolkit with shell scripting can achieve this task. This recipe discusses how to send a popup window with custom messages to remote hosts.
For implementing a GUI pop window, zenity can be used. Zenity is a scriptable GUI toolkit for creating windows consisting of textbox, input box, and so on. SSH can be used for connecting to the remote shell on a remote host. Zenity doesn't come installed by default with GNU/Linux distributions. Use a package manager to install zenity.