If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > how do i call a script

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-20-04, 12:07
iamagirl iamagirl is offline
Registered User
 
Join Date: Mar 2004
Posts: 10
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
Reply With Quote
  #2 (permalink)  
Old 03-20-04, 16:11
ika ika is offline
Registered User
 
Join Date: Oct 2003
Location: Slovakia
Posts: 482
Re: how do i call a script

Quote:
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
Reply With Quote
  #3 (permalink)  
Old 03-20-04, 20:55
iamagirl iamagirl is offline
Registered User
 
Join Date: Mar 2004
Posts: 10
O
Reply With Quote
  #4 (permalink)  
Old 03-31-04, 21:28
iamagirl iamagirl is offline
Registered User
 
Join Date: Mar 2004
Posts: 10
Quote:
Originally posted by iamagirl
O
thanks alot for the answer
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On