I have a problem with the following Bash script I found while surfing :
name=`dialog --backtitle "Hello Bash script"\
--title " The question "\
--inputbox " what's your first name : " 0 0 2>&1`
if [ $? = 0 ]; then
dialog --title "Hello Bash script"\
--msgbox "\nHi, $name !" 10 30
When I run it, the fisrt dialog doesn't show up and, if I type something in the console, the second box shows a lot of garbage.
So my question is : is it possible to get user input this way or is there another preferred way ?
Thanks for your help.