![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Zenity Menu | aspire | Shell Programming and Scripting | 4 | 07-08-2009 03:20 PM |
| zenity --question help | ruben.rodrigues | UNIX for Dummies Questions & Answers | 3 | 03-25-2009 03:36 AM |
| View an html page inside zenity | aspire | Shell Programming and Scripting | 0 | 03-23-2009 09:41 AM |
| Zenity | ruben.rodrigues | Shell Programming and Scripting | 2 | 03-03-2009 08:33 AM |
| Zenity 2.20.1 (Default branch) | iBot | Software Releases - RSS News | 0 | 12-31-2007 04:40 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Zenity and IF/ELSE cond'.
Hey guys i wrote this code but it wont give me anything.
any ideas? ans=$(zenity --list --text "Do you want to set USER/GROUP quota?" --radiolist --column "Choice" --column "Desc" TRUE Hi FALSE Bye); echo $ans if [ "$ans" = 0 ]; then ./example.sh else exit fi |
|
||||
|
As in the zenity radiolist, there is true and false. i assume that true is 0, as i dont really know the format of zenity. so thus if i choose the first choice then it will be true, and the $ans will be equals to one...
therefore, what im trying to say is i want to make the script to execute what the user selects, in this case is choice 1. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|