Don
Hi Guys,
Trying to knock up a script to change a variable, depending on answers:
#! /bin/bash
ans=$(zenity --list --text "Select your Domain" --radiolist --column "Pick" --column "Domain" TRUE UK FALSE US FALSE EUR);
if (( $ans == US ));
then
setparam ica.pnlogin.browseraddress_store1.server US.cloud.com:443
.
elif (( $ans == UK ));
then
setparam ica.pnlogin.browseraddress_store1.server UK.cloud.com:443
.
elif (( $ans == EUR ));
then
setparam ica.pnlogin.browseraddress_store1.server EUR.cloud.com:443
.
fi
This is where I have got to, but its not working correctly! The "setparam" command does work, and if i just have an Else/IF with two options, it seems to work fine. However, I will have 3+ options to use in this scenario, and I am tweaking away like mad and failing.
I am new to bash scripting, so be gentle please
Trying to knock up a script to change a variable, depending on answers:
#! /bin/bash
ans=$(zenity --list --text "Select your Domain" --radiolist --column "Pick" --column "Domain" TRUE UK FALSE US FALSE EUR);
if (( $ans == US ));
then
setparam ica.pnlogin.browseraddress_store1.server US.cloud.com:443
.
elif (( $ans == UK ));
then
setparam ica.pnlogin.browseraddress_store1.server UK.cloud.com:443
.
elif (( $ans == EUR ));
then
setparam ica.pnlogin.browseraddress_store1.server EUR.cloud.com:443
.
fi
This is where I have got to, but its not working correctly! The "setparam" command does work, and if i just have an Else/IF with two options, it seems to work fine. However, I will have 3+ options to use in this scenario, and I am tweaking away like mad and failing.
I am new to bash scripting, so be gentle please