Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!samsung!think!snorkelwacker!spdcc!ima!haddock!padouk.ima.isc.com!brian From: brian@padouk.ima.isc.com (Brian R. Holt) Newsgroups: comp.sys.apollo Subject: Re: How can a script determine machine type & OS? Message-ID: <15436@haddock.ima.isc.com> Date: 14 Dec 89 15:22:02 GMT References: Sender: news@haddock.ima.isc.com Reply-To: brian@ima.isc.com Distribution: comp Organization: Interactive Systems Corporation - Cambridge, MA Lines: 25 In article , abair@turbinia.oakhill.uucp (Alan Bair) writes: > 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, > 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. That is coming from /bin/login. I believe I put that in, back when I worked at Apollo, from the System V /bin/login. In any case, you should be able to get the same info from the uname command. =brian Disclaimer: This message brought to you by me, not my employer. brian@ima.isc.com US 617-661-7474 x206 near the Charles River