Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!purdue!decwrl!shelby!portia!forel!karish From: karish@forel.stanford.edu (Chuck Karish) Newsgroups: comp.unix.ultrix Subject: Re: Determining machine architecture and ULTRIX version Summary: uname() Message-ID: <6059@portia.Stanford.EDU> Date: 24 Oct 89 04:35:57 GMT References: <253@pvi.UUCP> Sender: USENET News System Reply-To: karish@forel.stanford.edu (Chuck Karish) Distribution: usa Organization: Mindcraft, Inc. Lines: 16 In article <253@pvi.UUCP> davidk@.com() wrote: >Are there any reliable methods for determining the architecture of a >machine running ULTRIX from a bourne shell script? >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). The uname() system call returns a structure that contains information that will be useful to you. Write a little C program that calls uname() and prints out the data, or wait until DEC ships the POSIX 1003.2 uname utility. Uname comes from System V, so a shell script that calls it is already portable to much of the UNIX world. Chuck Karish karish@mindcraft.com (415) 493-9000 karish@forel.stanford.edu