shell scripting - please need help

Discussion in 'Unix' started by nmh, Jan 20, 2008.

  1. nmh

    nmh New Member

    Joined:
    Sep 18, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    I have an assignment to do. Can you please point out if there is a error in the following code. Error message appears telling

    Error: Unknown option Please Select The Dr.
    Use --help to list options.

    thank you in advance

    dialog --backtitle "Linux Shell Script Tutorial " --title "Main\
    Menu" --menu "Move using [UP] [DOWN],[Enter] to\
    http://www.freeos.com/guides/lsst/maspc.htm (9 of 17) [17/08/2001 17.42.32]
    Linux Shell Script Tutorial
    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
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice