Return to Snippet

Revision: 906
at August 20, 2006 23:08 by yuconner


Initial Code
#!/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

Initial URL


Initial Description


Initial Title
gmessage script example

Initial Tags
linux

Initial Language
Bash