Posted By

wnasich on 08/27/10


Tagged

linux ubuntu gnome gdialog


Versions (?)

Yes/No GUI dialog on linux using gdialog


 / Published in: Bash
 

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

Report this snippet  

You need to login to post a comment.