RHEL Help Red Hat Enterprise Linux Tutorials


10
Sep/09
0

Creating Notifications with notify-send

Last week on the Linux Journal website, a tech tip was published showing how to get notifications from your scripts with notify-send. This is a great little tool that can display a pop-up message in the bottom right corner of your screen.

On RHEL, you can install notify-send with the following command:

yum install libnotify

To create a notification, you could type the following:

notify-send "Reboot Notification" "`hostname` will be rebooted at 1700 EST."

The resulting notification will look something like this:

Reboot Notification