The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Printing hostname
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Printing hostname
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
05-28-2008
gbiswal
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
gbiswal
View Public Profile
Find all posts by gbiswal