if your do something is some script then use exec to call that program
and break;; will return to main menu as you wanted if its under infinite while loop
So works fine but then (with OK button) script exit...
I want script return to the main menu when i click OK button after "zenity --text info" ...Any idea?
just to resolve my doubts, can i have more than 3 choices, cos im thinking that we have only three numbers (0,1,-1) to represent the choices. so can i have more choices.
and i used parts of your code to do some testing :
while true; do
choice="$(zenity --width=500 --height=150 --list --column "" --title="choice" \
"Enable " \
"Disable " \
"Quit")"
case $? in
0)
exec script.sh;;
1)
echo "No file selected.";;
-1)
exec exit;;
esac
Note: this will give me execution of script.sh regardless of any choices i made. so i guess im going wrong in some parts.