Hostname not working in MKS tool kit

Reply

Join Date: Jun 2007
Posts: 11
Reputation: vrgurav is an unknown quantity at this point 
Solved Threads: 1
vrgurav vrgurav is offline Offline
Newbie Poster

Hostname not working in MKS tool kit

 
0
  #1
Jul 18th, 2007
Hi ,

when i specify

export ORACLE_HOME=/orahome/app/oracle/product/10g
export PATH=$ORACLE_HOME/bin

bk=`hostname`
echo $bk


it gives error hostname not found
if I comment both export line it works fine


Can anyone tell me why is it so ??????


Thanks
Vrgurav
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,386
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 252
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: Hostname not working in MKS tool kit

 
0
  #2
Jul 18th, 2007
change
Shell Scripting Syntax (Toggle Plain Text)
  1. export PATH=$ORACLE_HOME/bin
to
Shell Scripting Syntax (Toggle Plain Text)
  1. export PATH=${PATH}:${ORACLE_HOME}/bin
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Shell Scripting Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC