![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Executing Multiple .SQL Files from Single Shell Script file | anushilrai | Shell Programming and Scripting | 3 | 04-07-2008 07:09 AM |
| executing shell file in jva + tomcat | jaganadh | Shell Programming and Scripting | 1 | 10-20-2007 03:58 PM |
| Post Shell programming: Question about source a file and read data from the file | ccwq | Shell Programming and Scripting | 3 | 08-04-2007 07:28 PM |
| Reading file names from a file and executing the relative file from shell script | anushilrai | Shell Programming and Scripting | 4 | 03-10-2006 02:25 AM |
| file activity (open/closed) file descriptor info using KORN shell scripting | Gary Dunn | UNIX for Dummies Questions & Answers | 3 | 06-07-2004 10:54 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Executing shell file within another shell file
Hello Everybody
I have a shell script file which contains certain intialisation.Initialisation section is around 20 lines.This initialisation section is required by 20 shell script files. Intialisation shell script contains only initialisation of variables and it is not a good practise to deplicate the same script in all 20 shell script Instead of that i want to call single initialisation script file in all 20 shell script which used it. Kindly tell me how to go about it. For example , below is section of initialisation section which have variable named CLASSPATH and this entire scripting is available in a single shell scrip file. Code:
CLASSPATH=/opt/programs/appl/:
CLASSPATH=${CLASSPATH}:.
CLASSPATH=${CLASSPATH}:<APPL_DIRECTORY>/lib/log4j-1.2.14.jar
How to do it ... Reply is very much appreciated |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Your_script
Code:
. /path/script_containing_variables ...... |
|
#3
|
|||
|
|||
|
Thanks very much ...it is working ..i really appreciate for ur valuable reply
|
|||
| Google The UNIX and Linux Forums |