Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2004
    Posts
    10

    Unanswered: how do i call a script

    Hi all;

    I'm new in this group.I don't know the level of the group yet but I would like to ask a basic question about shell scripting.

    How do I call a script in other script(is there any command similar to call )
    My script is such as:

    until [[ $MENUCHOICE == "e" ]]
    do
    clear
    echo "**************ADMIN MENU*******************"
    echo
    echo "a) User Manager"
    echo "b) Group Manager"
    echo "c) Tar me "
    echo "d) Exit
    echo
    echo -n "Please enter your selection(a,b,c,d): "
    read MENUCHOICE

    case $MENUCHOICE in

    "a")

    So in case of a) I need to call "usermanager.bash".

    How can I do this?

    Any help would be great
    Belinda

    shell scripting

  2. #2
    Join Date
    Oct 2003
    Location
    Slovakia
    Posts
    482

    Re: how do i call a script

    Originally posted by iamagirl
    Hi all;

    I'm new in this group.I don't know the level of the group yet but I would like to ask a basic question about shell scripting.

    How do I call a script in other script(is there any command similar to call )
    My script is such as:

    until [[ $MENUCHOICE == "e" ]]
    do
    clear
    echo "**************ADMIN MENU*******************"
    echo
    echo "a) User Manager"
    echo "b) Group Manager"
    echo "c) Tar me "
    echo "d) Exit
    echo
    echo -n "Please enter your selection(a,b,c,d): "
    read MENUCHOICE

    case $MENUCHOICE in

    "a")

    So in case of a) I need to call "usermanager.bash".

    How can I do this?

    Any help would be great
    Belinda

    shell scripting
    Just add path to script and script name, for example:

    /path/to/my/script.sh

    or

    exec /path/to/my/script.sh

  3. #3
    Join Date
    Mar 2004
    Posts
    10
    O

  4. #4
    Join Date
    Mar 2004
    Posts
    10
    Originally posted by iamagirl
    O
    thanks alot for the answer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •