The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 05-28-2008
gbiswal gbiswal is offline
Registered User
 

Join Date: May 2008
Posts: 2
Hi,

When I am using commnad:hostname in unix command prompt , it's printing the system name of my system but when I use this command in shell script it gives nothing.

localHostName=hostname
echo $localHostname
Reply With Quote