July 2005
Beginner
720 pages
18h 15m
English
In Chapter 25, “Harnessing the Power of the Shell,” you learned to write shell scripts to perform sequences of commands without user intervention. Sometimes it is also helpful to be able to get user input as a shell script is running—to allow the user of the script to make choices about how tasks will be performed, for example.
The xmessage command can be used in shell scripts to enable the scripts to interact easily with the user via the mouse.
To use xmessage in your shell scripts, you must call it from within a script by using the -buttons option and two arguments: a comma-separated list of buttons and the message that should be displayed to the user above the buttons. ...
Read now
Unlock full access