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: Stefan Moeding Subject: Re: uname -n? Date: 2000/06/03 Message-ID: <87zop3qkxp.fsf@esprit.firekeys.org>#1/1 X-Deja-AN: 630517792 Content-Transfer-Encoding: 7bit References: Content-Type: text/plain; charset=US-ASCII X-Complaints-To: abuse@ndh.net X-Trace: passat.ndh.net 960017647 24906 62.40.8.168 (3 Jun 2000 07:34:07 GMT) Organization: Private FreeBSD site Mime-Version: 1.0 NNTP-Posting-Date: 3 Jun 2000 07:34:07 GMT Newsgroups: comp.unix.tru64 Hi! Legend writes: > 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. "uname -n" returns whatever name was set during system startup with the hostname command. After running the BIND setup you will find that the hostname definition in /etc/rc.conf has been changed to contain the FQDN. This is nothing new. Ultrix did it this way and IIRC it has been this way since OSF/1 V1.2. You could use "uname -n | cut -d. -f1" for a portable script. -- Stefan