User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 456,436 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,608 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 827 | Replies: 1
Reply
Join Date: Jun 2007
Posts: 11
Reputation: vrgurav is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
vrgurav vrgurav is offline Offline
Newbie Poster

Hostname not working in MKS tool kit

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2006
Posts: 1,509
Reputation: masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light 
Rep Power: 10
Solved Threads: 136
masijade's Avatar
masijade masijade is offline Offline
Posting Virtuoso

Re: Hostname not working in MKS tool kit

  #2  
Jul 18th, 2007
change
export PATH=$ORACLE_HOME/bin
to
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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Shell Scripting Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Shell Scripting Forum

All times are GMT -4. The time now is 1:36 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC