An gdialog example in linux. A dialog prompt for yes or no.
#!/bin/bash
gdialog --title "some title for the dialog" --yesno "some text \n the yes/no question."
if [ $? == 0 ]; then
{commands for yes}
else
{maybe other commands for no}
fi
An gdialog example in linux. A dialog prompt for yes or no.
#!/bin/bash
gdialog --title "some title for the dialog" --yesno "some text \n the yes/no question."
if [ $? == 0 ]; then
{commands for yes}
else
{maybe other commands for no}
fi
Leave a Reply
You must be logged in to post a comment.