The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
simple unix script help xtos Shell Programming and Scripting 2 07-23-2007 03:33 AM
I have a simple unix question smn2003 UNIX for Dummies Questions & Answers 1 12-10-2005 04:06 PM
Simple Unix Question djt0506 Shell Programming and Scripting 1 11-25-2005 04:26 AM
How do I organize a series of files in date order? hedgehog001 UNIX for Dummies Questions & Answers 1 08-23-2005 12:04 AM
simple Unix commands i don't care UNIX for Dummies Questions & Answers 2 08-16-2002 12:09 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-25-2008
mr_manny mr_manny is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 144
looking for a simple way to organize envs on our unix box...

would like to standardize how we set envs on our unix box, so I thought a menu would be a great way to accomplish this.

The problem I'm experiencing, is the value is set...but ONLY during the time the menu is initiated.

please see below:
> /home/is/bin/r12MENU.sh
**================================================================**
** to Set your environment, select one of the following: **
** 1.) DEVSID - Development Environments **
** 2.) UATSID - CRP2/UAT Environments **
** 3.) GLDSID - GOLD Environments **
** 4.) APPSSID - PROD Environments **
** e.) EXIT this menu **
**================================================================**


** Enter your response (1, 2, 3, 4 or [e]): 1

**=========================================================**
** You have chosen DEVSID - Development Environments **
** **
** your environment will now be set... **
**=========================================================**
devsid



the devsid you see above is an ECHO within the menu script on oracle_sid.
so I know it's setting the correct env, but only durring the running of the script.

If I perform an echo from command line...it's set to whatever was defined before running the menu.

If I run the individual scripts from CL, it sets my env correctly...so it's not the individual env scripts.

any assistance would be appreciated,
manny
 

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0