shell编程zenity
Zenity adds graphical interfaces to shell scripts with a single command. Shell scripts are a great way to automate repetitive tasks, but they’re normally confined to the terminal — Zenity brings them out of the terminal and onto your desktop.
Zenity只需一个命令即可将图形界面添加到Shell脚本。 Shell脚本是自动执行重复任务的好方法,但通常只限于终端机-Zenity将它们带出终端机并带到您的桌面上。
We’ve given an introduction to shell scripting in the past. You don’t have to be a programmer to get started with shell scripts — they require little more than knowledge of Linux terminal commands.
过去,我们已经介绍了Shell脚本 。 您无需成为程序员即可开始使用Shell脚本-它们只需要了解Linux终端命令即可。
获得热情 (Getting Zenity)
Zenity comes with Ubuntu by default. If you use an Ubuntu derivative, Such as Kubuntu, you may have to install it manually with the following command:
Zenity默认随附于Ubuntu。 如果使用Ubuntu衍生产品(例如Kubuntu),则可能必须使用以下命令手动安装它:
sudo apt-get install zenity
sudo apt-get install zenity
Zenity is a part of GNOME, so it should already be included on Linux distributions that use the GNOME desktop. C