Hiya! Welcome to LQ.
First things first: Please put code into code tags, so it is more readable, and so that any formatting that might be present, will be preserved. Here's how to use code tags:
http://www.phpbb.com/community/faq.php?mode=bbcode#f2r1
Now.... Unless that's a typo, there is a SPACE between the
test_pram= and the
$(zenity.. thing, which will mean that the variable will always be empty, and your zenity ccommand, if it works, will just execute and return nothing useful to the script.
If there's more than that wrong, I don't see it at this moment -- I'm tired, and going to sleep soon
Cheers,
Sasha
PS -- instead of the
while true; do that you are using, how about something more like:
Code:
while [ ! "$test_pram" ]; do
which will repeat the loop until $test_pram has some contents?