The UNIX Forums
"Join the Network of UNIX System Users"


 
Subject: problem with .profile
imparas
Newbie
Rank: 1



UID 185
Digest Posts 0
Credits 0
Posts 37
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:12 PM  Profile | P.M. 
problem with .profile



problem with .profile



i am trying to execute my .profile which has the path to oracle home. but when i execute it with the below command it says nothing and when i try to echo the oracle_home i am still in my home directory itself which means it didn't get executed.


please help how to make sure that .profile is executed perfectly.

i am running the .profile by command

./.profile

i am having the below statement in my .profile

oracle_home=/apt/opp/oracle/9.2.0
export oracle_home
echo $oracle_home


Top
d16man
Newbie
Rank: 1



UID 104
Digest Posts 0
Credits 0
Posts 52
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:12 PM  Profile | P.M. 
work on solaris in ksh

tstora3:tmp :./.test
/apt/opp/oracle/9.2.0
tstora3:tmp :more .test
oracle_home=/apt/opp/oracle/9.2.0
Top
carljohn
Newbie
Rank: 1



UID 83
Digest Posts 0
Credits 0
Posts 28
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:12 PM  Profile | P.M. 
you need to source .profile. you are currently running .profile, it forks and then returns to the current environment, but losing all the settings it just made. sourcing .profile will instead bring all those settings back into your current environment.

do:


quote:
. ./.profile
Top
ajscottsr
Newbie
Rank: 1



UID 44
Digest Posts 0
Credits 0
Posts 51
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:12 PM  Profile | P.M. 
nope. still the same problem.
Top
fluid
Newbie
Rank: 1



UID 146
Digest Posts 0
Credits 0
Posts 47
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:12 PM  Profile | P.M. 
make sure you have set the execute permission to the file, and also, try this.
Top
Gnet
Newbie
Rank: 1



UID 159
Digest Posts 0
Credits 0
Posts 44
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 5, 2007 12:12 PM  Profile | P.M. 
. .profile



hi,
execute . .profile chk there is no execute permission on .profile
we want to set these environment values
u can manually set those values like
export env_var=oracle_home
but i think whn u will execute . .profile it will work
Top
 

 

All times are GMT, the time now is Jul 31, 2010 03:38 AM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.005700 second(s), 8 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP