calling a script from within another script
From: jeffm (royal_ranks_at_hotmail.com)
Date: 09/30/03
- Next message: Jim Lambert: "Re: calling a script from within another script"
- Previous message: Doctor J. Frink: "Re: looking for a plotting toolkit / library / motif widget set"
- Next in thread: Jim Lambert: "Re: calling a script from within another script"
- Reply: Jim Lambert: "Re: calling a script from within another script"
- Reply: Adam Dyga: "Re: calling a script from within another script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Sep 2003 16:36:05 +0200
Hi
I've got a script that sets environment variables , called env.sh and a
second one , called main.sh , which uses the environment variables set
by env.sh
Now , main.sh has these two lines (amongst other stuff)
$SCRIPTS_LOCATION/remove_all_logs.sh
$SCRIPTS_LOCATION/remove_all_tran_logs.sh
Variable SCRIPTS_LOCATION (together with other variables)is set in
env.sh as follows
export SCRIPTS_LOCATION=/root/scripts
export APP_INSTALL_LOGS=/websphere/logfiles/work
export WSCPDIR=/opt/WebSphere/bin
export WS_TRAN_LOGS=/opt/Websphere/tranlog
How do I call env.sh from within main.sh , to set the environment
variables that are later used (in main.sh) ?
Both main.sh and env.sh reside in the same directory
jeff mutonho
- Next message: Jim Lambert: "Re: calling a script from within another script"
- Previous message: Doctor J. Frink: "Re: looking for a plotting toolkit / library / motif widget set"
- Next in thread: Jim Lambert: "Re: calling a script from within another script"
- Reply: Jim Lambert: "Re: calling a script from within another script"
- Reply: Adam Dyga: "Re: calling a script from within another script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|