开发者

Shell scripting GUI

开发者 https://www.devze.com 2023-03-15 03:20 出处:网络
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, wh

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

0

精彩评论

暂无评论...
验证码 换一张
取 消