Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!oakhill!abair From: abair@turbinia.oakhill.uucp (Alan Bair) Newsgroups: comp.sys.apollo Subject: How can a script determine machine type & OS? Message-ID: Date: 13 Dec 89 21:20:17 GMT Sender: news@oakhill.UUCP Distribution: comp Organization: SPS CAD, Motorola Inc., Austin, Texas. Lines: 26 We are developing gnumake files to use on all of the machines we have to support, so we need a way to determine the machine type and OS. For the Sun, we grep the first line of /etc/motd, which is a line from the booting messages that we add. For example: Sun UNIX 4.2 Release 3.4 (CALYPSO) #1: Mon Dec 28 10:45:53 CST 1987 We run BSD4.3 on the Apollos, so I looked at doing something similar to the Sun, but cannot find a log file to obtain similar information from. I have noticed that when you login, there is a single line displayed with similar information as follows. DomainOS Release 10.1 (bsd4.3) Apollo DN10000 serapis It is displayed just before /etc/motd, presumably by the login process. I have checked the normal Apollo startup files, and it does appear to come from them. If I could get the above string from a command, then my problem would be solved. I would prefer a non-Aegis method, but will accept any ideas. -- Alan Bair SPS CAD Logic Simulation & Test Motorola, Inc. Austin, Texas ...!cs.utexas.edu!oakhill!turbinia!abair