Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!pvi!davidk From: davidk@pvi.UUCP (David Kirkpatrick) Newsgroups: comp.unix.ultrix Subject: Determining machine architecture and ULTRIX version Message-ID: <253@pvi.UUCP> Date: 23 Oct 89 22:25:27 GMT Reply-To: davidk@.com() Distribution: usa Organization: Precision Visuals Inc., Boulder, Colorado Lines: 26 Are there any reliable methods for determining the architecture of a machine running ULTRIX from a bourne shell script? I am looking for something similar to SUN's "arch" command, which returns a string containing "sun3", "sun4", etc.. depending on the machine. In a similar vein, I would also like to determine the version of ULTRIX that is running, and the version of DECWindows (or UWS) programmatically, (bourne shell script). I have tried things like the following: strings /vmunix |grep Ultrix which yields the following line: Ultrix Worksystem V2.0 (Rev. 7) System #1: Tue Mar 21 20:01:54 MST 1989 Unfortunately, this only tells me the version of Workstation software (DECwindows), and not the version of ULTRIX. Any help on either or both of the questions would be greatly appreciated. Please send replies to: David Kirkpatrick ...{ncar, boulder}!pvi!davidk (303) 530-9000 x-435