get chosen value from bash menu

view full story

http://www.unix.com – Hi again :) This is just a sample whiptail menu. Works great, but have been trying to get the chosen value into a variable but failing pretty bad...its ther but unsure how to echo it out when needed Code: #! /bin/bash #This is the menu whiptail --title "Menu example" --menu "Choose an option" 20 78 16 \ "<-- Back" "Return to the main menu." \ "Add User" "Add a user to the system." \ "Modify User" "Modify an existing user." \ "List Users" "List all users on the system." \ "Add Gr (HowTos)