The UNIX and Linux Forums  


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
How to use substr to return data into a shell script variable? ttunell Shell Programming and Scripting 3 07-23-2008 01:02 AM
Setting environment variable on a remote solaris machine using shell script eamani_sun Shell Programming and Scripting 1 05-30-2008 11:05 PM
The Lightweight X11 Desktop Environment: A return to basics iBot UNIX and Linux RSS News 0 12-04-2007 12:30 PM
Set the 'DISPLAY' environment variable script orno Shell Programming and Scripting 3 02-12-2007 12:27 PM
problem in getting the path of environment variable set in bashrc in my shell script krithika Shell Programming and Scripting 8 05-26-2006 09:19 AM

 
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 03-17-2009
bce_groups bce_groups is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 7
Simple script to return environment variable

HI ,


In the below script I am trying to return the value of the environment variable TIBCO_HOME to the caller

#! /usr/bin/csh
set VAR_NAME=$1
echo VAR_NAME


On the aix console.. set to setenv TIBCO_HOME /app/tibco

When I execute the script… myscript.sh TIBCO_HOME, the script prints TIBCO_HOME. But I am expecting /app/tibco.

Can anyone help me to fix this?


Thanks,

Babu
 

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 07:51 AM.


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