![]() |
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 |
| 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 12:02 AM |
| Setting environment variable on a remote solaris machine using shell script | eamani_sun | Shell Programming and Scripting | 1 | 05-30-2008 10: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 08:19 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
|
||||
|
HI,
Thanks for your response. I changed my script but still the script prints TIBCO_HOME. I am invoking the script as "csh -f test1.sh TIBCO_HOME" echo $TIBCO_HOME on unix console returns /app/tibco, I want the same output from my script. Below is the modified script.. #! /usr/bin/csh set VAR_NAME=$1 echo $VAR_NAME Thanks, bce |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|