943,594 Members | Top Members by Rank

Ad:
Jul 18th, 2007
0

Hostname not working in MKS tool kit

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 1
Newbie Poster
vrgurav is offline Offline
11 posts
since Jun 2007
Jul 18th, 2007
0

Re: Hostname not working in MKS tool kit

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
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Shell Scripting Forum Timeline: How to remove spaces from a string
Next Thread in Shell Scripting Forum Timeline: Need Help with sh script





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC