From: http://dev.firnow.com/course/6_system/linux/Linuxjs/20100205/194812.html
Use shell to automatically execute applicationsProgramTo display the runtime process as a window.
#! /Bin/sh
Top | zenity -- text-info -- Title = "Top Info" -- width = 800 -- height = 400
Depending on the zenity parameter usage, set zenity -- help or man zenity.
Usage: zenity [option...]
Dialog Box options
-- Calendar display dialog box
-- Entry: display text input column dialog box
-- Error: displayed error message dialog box
-- File-selection: displays the file selection dialog box.
-- Info display dialog box
-- List display List dialog box
-- Progress display progress indicator window
-- Question: displayed question information dialog box
-- Text-Info display text credit dialog box
-- Warning display warning dialog box
General options
-- Title = title of the specified dialog box
-- Window-Icon = graph path specifies the graph used by the window
-- Width = width specifies the width
-- Height = Specify the height
Calendar options
-- Text = string specifies the text in the dialog box
-- Day = int specifies the date in the calendar
-- Month = int indicates the month in the calendar.
-- Year = int indicates the year in the calendar.
-- Date-format = string specifies the format of the return date
Text input column options
-- Text = string specifies the text in the dialog box
-- Entry-TEXT = string indicates the text in the input column.
-- Hide text in the input column with hide-Text
Error message options
-- Text = string specifies the text in the dialog box
File selection options
-- Filename = specifies the file name.
-- Multiple allows you to select multiple files at the same time
-- Separator = delimiter specifies the delimiter used to separate output results.
Information options
-- Text = string specifies the text in the dialog box
Configuration Options
-- Column = string specifies the column title
-- Use the Independent Selection button in the first column of the checklist.
-- Use the multi-choice button in the first column of radiolist
-- Separator = delimiter specifies the delimiter used to separate output results.
-- Editable can change text
Progress options
-- Text = string specifies the text in the dialog box
-- Percentage = int indicates the 100th ratio at the beginning.
-- Pulsate fill progress Column
-- Auto-close: Close the dialog box when the Progress reaches 100%
Question options
-- Text = string specifies the text in the dialog box
Text options
-- Filename = file name enable file
-- Editable can change text
Warning options
-- Text = string specifies the text in the dialog box
GTK + Option
-- Gdk-DEBUG = prepare the set gdk debugging tag
-- Gdk-no-DEBUG = The gdk debug tag to be removed
-- Display = x image to be used
-- Sync for X synchronous call
-- Name = Name the program name required by Windows Manager
-- Class = Class the program category name required by the Windows Manager
-- Gxid-host = Host
-- Gxid-Port = port number
-- GTK-DEBUG = prepare the set GTK + debug tag
-- GTK-no-DEBUG = The GTK + debugging test label to be removed
-- G-fatal-Warnings: handle all warnings as critical errors
-- GTK-module = the module loads additional GTK modules.
Other options
-- About zenity
-- Display version
Help options
-?, -- Help show this help message
-- Usage display brief usage message