13,420
edits
Changes
no edit summary
To obtain input, think of Zenity as a replacement for the '''read''' command.
You can use '''--entry''' to prompt the user for input. When the user enters text and clicks the OK button, or presses the <ENTER> key, zenity will return the value of that entered text. To store it into a <u>variable </u> to be used later in the program, you can use command substitution (enough said, since this is being used for an assignment! You figure it out :) ... ). To obtain more options with this command, you should use the man pages... (eg. '''man zenity''').
== Simple Examples ==