Server Administration & Management

Xmessage – Text Messaging from CLI to GUI

The command we need to use to pop an alert to the screen is xmessage. This is a very simple tool that dates back to the earliest years of X Windows, and will simply open a small window on your screen that includes a text message and a close button. The syntax for the xmessage command goes like this:

# xmessage -display :0.0 “You are late”

The display part of the command is important because it lets xmessage know which screen to use. If you add the command to at, you’ve got a flexible method for giving yourself reminders without having to resort to a separate application. This is often easier than using something like Cron, which can be a little daunting when all you want to do is run a simple command such as xmessage!

January 22, 2013 Posted by | Tips & Tricks, Unix/Linux | , | Leave a comment