![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to convert byteArray variables to HexaString variables for Linux? | ritesh_163 | High Level Programming | 2 | 08-11-2008 12:55 AM |
| script to export variables | aboxilica | Shell Programming and Scripting | 1 | 02-20-2008 07:15 AM |
| export??? | Justinkase | Shell Programming and Scripting | 1 | 12-03-2007 06:32 PM |
| export env variables | varun.81 | Shell Programming and Scripting | 2 | 04-30-2007 08:39 AM |
| export variables | srishan | Shell Programming and Scripting | 4 | 07-06-2004 01:53 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
not able to export the Variables
I am working with Sun Solaris 9 and I want to export the environment variable from my application(xxxx.ksh) but I am not able to see it when I am using SET command
I am writing some variables which I have to set COMMON_USER_HOME=${HOME} export COMMON_USER_HOME echo COMMON_USER_HOME=$COMMON_USER_HOME export P4USER="AbcdeF" echo P4USER=$P4USER but when I am running my file xxxx.ksh and echoing the variable then I am able to see the output of the variable but not able to see it as exported when using set commond # echo $SHELL /bin/sh COMMOM_USER_HOME=/home/User1 P4USER=AbcdeF So Can anyone tell me what is the problem and how can I salve it ![]() Thanks in Advance... Last edited by smartgupta; 09-29-2008 at 06:05 AM.. |
|
||||
|
Quote:
With "ksh filename.ksh" you're starting the script in a new shell (child) and all variables you've set are lost if the script exits. The parent shell don't inherit anything from the child. Regards |
|
||||
|
yes,I made the file executable (chmod).but afterthat I am not able to execute it.when I am executing it by
#ls -l -rwxrwxrwx 1 root other 5338 Sep 29 13:16 profile.ksh # ./profile.ksh ./profile.ksh: bad substitution # . ./profile.ksh bad substitution |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|