![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| 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 10:09 AM |
| executing shell file in jva + tomcat | jaganadh | Shell Programming and Scripting | 1 | 10-20-2007 06: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 10: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 05:25 AM |
| file activity (open/closed) file descriptor info using KORN shell scripting | Gary Dunn | UNIX for Dummies Questions & Answers | 3 | 06-07-2004 01:54 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|