From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,29c7c431c8a2cbc5 X-Google-Attributes: gidfa528,public From: Tony Verhulst Subject: Re: uname -n? Date: 2000/07/11 Message-ID: <396B8804.28747BD6@zk3.dec.com>#1/1 X-Deja-AN: 645197945 Content-Transfer-Encoding: 7bit References: <3943E251.179F5FFC@dassic.com> X-Accept-Language: nl, en Content-Type: text/plain; charset=us-ascii X-Complaints-To: iass@lead.zk3.dec.com X-Trace: lead.zk3.dec.com 963348591 27947 16.140.128.246 (11 Jul 2000 20:49:51 GMT) Organization: UNIX Kernel Group Mime-Version: 1.0 NNTP-Posting-Date: 11 Jul 2000 20:49:51 GMT Newsgroups: comp.unix.tru64 > I have a question about what this command: "uname -n" is supposed to return. > On Solaris, it returns my hostname, but on Tru64, it returns > host.domain.com. I have a few scripts that run fine on other Unix platforms > but failed on Tru64. Could someone explain to me why it is like this? Is it > something I did wrong while setting up the system? I am running Tru64 5.0. > > I want to know if this is when Compaq decided to change "uname -n" to return > the entire hostname and domain name? Which verision begins this unique > behavior so that I can adjust my script to check on the version accordingly. Tru64 Unix uname -n is documented as: -n Displays the name of the node (this *may* be a name that the system is known by to a communications network). Similar wording is used in other uname man pages that I've seen on the web for AIX, SOLARIS, and other vendors. In fact, the Solaris man page says "....the nodename *is* the name by which the system is known to a communications network..." - see http://www.cs.rit.edu/~hpb/Man/_Man_Solaris_2.6_html/html1/uname.1.html. In any case, Tru64 Unix uname -n displays the name as set in /etc/rc.config HOSTNAME. This file is typically generated as system installation time and HOSTNAME is chosen by the person performing the installation. Tony V. Kernel Group