Shell Script Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sagarbsa
    New Member
    • Sep 2007
    • 5

    Shell Script Error

    Hii, I have a shell script to create a small dialog box to select options and give the output. But it is exiting the script without displaying anything. Can anyone help me with this

    cat > smenu
    #
    #How to create small menu using dialog
    #
    dialog --backtitle "Linux Shell Script Tutorial " --title "Main\
    Menu" --menu "Move using [UP] [DOWN],[Enter] to\
    Select" 15 50 3\
    Date/time "Shows Date and Time"\
    Calendar "To see calendar "\
    Editor "To start vi editor " 2>/tmp/menuitem.$$
    menuitem=`cat /tmp/menuitem.$$`
    opt=$?
    case $menuitem in
    Date/time) date;;
    Calendar) cal;;
    Editor) vi;;
    esac
Working...