From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6757770e022f910e X-Google-Attributes: gidfee84,public From: Kjell Andresen Subject: Re: Using what command you can get 4.0d? Date: 2000/02/14 Message-ID: #1/1 X-Deja-AN: 585677449 Sender: kjell@beta.uio.no References: <38a45d05$0$95135@news.sol.net> Organization: - Content-Type: text/plain; charset=us-ascii User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Hannes Loeffler writes: > Kjell Andresen writes: > > > cui@solaria.sol.net (David Cui) writes: > > > > > I am writing a script and I need to get 4.0d. > > > How can I get that? > > > uname -a doesn't help. > > > > I've compiled a list at http://www.usit.uio.no/it/unix/du/versjoner.txt > > > > > Any command will do that? > > > > kjell@halfdan ~ $ sizer -v > > Digital UNIX V4.0F (Rev. 1229); Thu Jul 29 13:40:05 MET DST 1999 This option to sizer is not available in all versions of DU/TU - I do not remember when it came - , so therefore I also suggested: > > kjell@halfdan ~ $ grep -i unix /etc/motd > > Digital UNIX V4.0F (Rev. 1229); Thu Jul 29 13:40:05 MET DST 1999 > > /etc/motd might be modified by the sysadmin to serve as what it is intended > to do: output the message of the day. Yes, of course - but it's worth to decide whether or not to keep this single line if for example sizer does not support the -v option (as long as the only other place the version is placed is in the binary log; uerf) A well maintained system could even use DNS: $ host -t hinfo halfdan halfdan.uio.no host information DEC-200-4/166 DIGITAL-UNIX-4.0F But I guess not everybody will like to broadcast this. Kjell