Search Results

Search: Posts Made By: gbiswal
65,402
Posted By gbiswal
Hi, When I am using commnad:hostname in unix...
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...
65,402
Posted By gbiswal
Printing hostname
Hi,

I am using hostname environment variable in my shell script to print the host name but it's printing nothing.Can you please help me on this.

Please find the part of the code pasted here:
...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 05:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy