Mike Pfaiffer wrote:
took the course a little over 10 years ago). I looked at the man pages for Zenity and BASH. I also looked at several examples in the /etc directory (obviously unsuccessfully). I'll admit to being an airhead occasionally, but this is a really simple problem. Simple problems are the worst ones to solve. :-(
The special parameter $? is the status or return value of the last command.
For example:
zenity --question "Test" echo $?
$? is 0 for "OK" and is 1 for "Cancel"
Thanks for asking the question. I have used "dialog" for similar purposes but zenity looks quite nice.
Good luck, Bill