/ Published in: Bash

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/sh gmessage -center -title 'title' -geometry 600x100 "Content, select an option:" -buttons $(echo -e -n "OptionA:0,OptionB:1,OptionC:2,OptionD:3,OptionE:4,OptionF:5,OptionG:6,Abort:8" ) Res="$?" if [ "$Res" = "8" ]; then exit 2; fi if [ "$Res" = "0" ]; then `[do something]`;fi if [ "$Res" = "1" ]; then `[do something]`;fi if [ "$Res" = "2" ]; then `[do something]`;fi if [ "$Res" = "3" ]; then `[do something]`;fi if [ "$Res" = "4" ]; then `[do something]`;fi if [ "$Res" = "5" ]; then `[do something]`;fi if [ "$Res" = "6" ]; then `[do something]`;fi
Comments
