Code:
OPT1=`zenity --entry --text="Please input the host IP:" --title "input IP address:"`
or
Code:
OPT1=$(zenity --entry --text="Please input the host IP:" --title "input IP address:")
It's all about the quotes ;-)
__________________
My
Journal
Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.