Zenity can create four types of message dialog:
For each type, use the --text option to specify the text that is displayed in the dialog.
Use the --error option to create an error dialog.
The following example script shows how to create an error dialog:
#!/bin/bash
zenity --error \
--text="Could not find /var/log/syslog."
Use the --info option to create an information dialog.
The following example script shows how to create an information dialog:
#!/bin/bash
zenity --info \
--text="Merge complete. Updated 3 of 10 files."