hello,
i'm experimenting on "dialog" in shell scripting
consider an example :
dialog --passwordbox "password" 10 30
i need to take the password typed to a variable. how can i do it. i tried it in perl by backticking the command. but its not working. give me a solution ASAP......
Try something like this:
exec 3>&1 foo=$( { dialog --passwordbox "password" 10 30 1>&3; } 2>&1 ) exec 3>&- echo "foo=$foo"
thankx guys........
there is an additional option like "--stdout" which will take the o/ps to stdout and we can get it directly assigned to variables......