Yes/No GUI dialog on linux using gdialog

/ Published in: Bash
Save to your folder(s)

Copy this code and paste it in your HTML
  1. #!/bin/bash
  2. gdialog --title "some title for the dialog" --yesno "some text \n the yes/no question."
  4. if [ $? == 0 ]; then
  5. {commands for yes}
  6. else
  7. {maybe other commands for no}
  8. fi

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.