I'm having difficulty grasping how to correctly pull the output of $? and make a correct if/then statement out of it. I always seem to end up with the same result regardless of which selection I make in the window.
In order to keep it simple, I've just changed it as follows, so you can quickly grasp what I'm trying to accomplish.
Code:
zenity --question --text "Need help?"; echo $?
if [ $? = 0 ] ; then
echo "Let me help you then"
else
echo "Ok, good. You got it."
fi
Also, can anyone provide a good on-line source for different types of IF/THEN statements. All my resources are very limited and always give you the one or two most typical examples and that's it.
thanks in advance...
Bookmarks