Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 8th, 2007, 07:47 PM
keo keo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 1 keo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 m 50 sec
Reputation Power: 0
Assigning the value of ${ENVTYPE}_Var to ScriptVar

I need assistance getting the following to work either using weblogic Scripting Tool, KSH, PERL.
We have an env variable called ENVTYPE. The Variable is used to define the type of server we are on.
Example:
On the test servers, ENVTYPE=TEST
On the QA servers, ENVTYPE=QA
On the Prod Servers, ENVTYPE=PROD

I created an application property file contains something like this:

TEST_Var=foo
QA_Var=bar
PROD_Var=foobar

Could someone please help me with this?

My script sources the property file and then needs to assign the correct value to the variable ${ScriptVar}.

example:
ScriptVar=${ENVTYPE}_Var
print "You are on: ${ScriptVar}"
The results would be as follows:
When ran on a Test server "You are on: foo"
When ran on a QA server "You are on: bar"
When ran on a Prod server "You are on: foobar"

Could someone please help me with this?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > Assigning the value of ${ENVTYPE}_Var to ScriptVar


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT