O'Reilly logo

Linux Shell Scripting Cookbook by Sarath Lakshman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Multi-casting window messages on a network

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.

Getting ready

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.

How ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required