HOSTNAME: environment variable or not?
Peter L. Peres
plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Fri Feb 18 20:30:25 UTC 2005
On Fri, 18 Feb 2005, Francois Ouellette wrote:
>>> I'm confused. Can someone enlighten me as to this bash nuance.
>>
>> hostname is a user command, not a shell variable. cat
>> /proc/sys/kernel/hostname should yield the same result.
>>
>> Peter
>> --
>
> Why not use:
> uname -n
> instead?
because both use the uname(2) syscall interface and it makes no
difference which you use (uname -n is probably more portable) ?
Peter
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list