I want to write a shell script which has a simple GUI interface to show some messages.Is there any GUI library available which can r开发者_如何学JAVAun on any Linux OS?
Gnome has the zenity command, which you use like this:
zenity --info --text "message here"
Note that the command waits until the user acknowledges the message. Also, make sure your $DISPLAY environment variable is set in the shell's environment, or you will get an error like this: (zenity:14693): Gtk-WARNING *: cannot open display:*
"On any linux OS"? No chance... :) But "dialog" is very common stuff. Here is a good example about it:
http://unstableme.blogspot.com/2009/12/linux-dialog-utility-short-tutorial.html
精彩评论