Mar 15, 2007 #1 ranjank IS-IT--Management Joined May 9, 2003 Messages 176 Location IN Hi All, I want to call a variable defined in the another file.For E.G cat tomcat VERSION=test ABC=mmm BCD=nnn ...... I want to call variable VERSION in spec file.Is there any way i can do it.Any pointers on this will be of great help. Regards, Ranjan.
Hi All, I want to call a variable defined in the another file.For E.G cat tomcat VERSION=test ABC=mmm BCD=nnn ...... I want to call variable VERSION in spec file.Is there any way i can do it.Any pointers on this will be of great help. Regards, Ranjan.
Mar 15, 2007 #2 p5wizard IS-IT--Management Joined Apr 18, 2005 Messages 3,165 Location BE If you "source" the tomcat file in the spec file, you will inherit all variables For Korn, Bourne, bash shell go like this Code: # # # # source variables from tomcat file . /path/to/file/tomcat # # # # now use any variable defined in tomcat file echo $VERSION ... HTH, p5wizard Upvote 0 Downvote
If you "source" the tomcat file in the spec file, you will inherit all variables For Korn, Bourne, bash shell go like this Code: # # # # source variables from tomcat file . /path/to/file/tomcat # # # # now use any variable defined in tomcat file echo $VERSION ... HTH, p5wizard