Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!panews!skate.awdpa.ibm.com!ericm From: ericm@ibmpa.awdpa.ibm.com (Eric Murray) Newsgroups: comp.unix.admin Subject: Re: what kind of machine am I Message-ID: <1991May15.230524.14422@ibmpa.awdpa.ibm.com> Date: 15 May 91 23:05:24 GMT References: <858@lhdsy1.chevron.com> <4035@island.COM> Sender: news@ibmpa.awdpa.ibm.com (news ego) Reply-To: ericm@throne-of-blood.awdpa.ibm.com (Eric Murray) Distribution: na Organization: This line intentionally left blank. Lines: 45 In article <4035@island.COM> daniel@island.COM (Daniel Smith "innovation, not litigation...") writes: > >#! /bin/sh ># ># whicharch - what machine am I on? ># daniel@island.com (Please send me any extensions to this) ># [...] Here's how to tell the various IBM UNIX-like systems apart: # Determine the system type. Set ${sys} to one of the # following depending on which operating system is running. # # rt_bsd: 4.3 BSD on RT # aix_22: AIX 2.* on RT # aix_11: AIX 1.1 or AIX 1.2 on PS/2 # aix_31: AIX 3.1 on RISC 6000 # # if [ -f /unix ] then if [ -d /vrm ] then sys=aix_22 else if [ -d /etc/security ] then sys=aix_31 else sys=aix_11 fi fi else if [ -f /vmunix ] then sys=rt_bsd else sys=unknown fi fi eric murray ericm@angst.awdpa.ibm.com ericm@ibminet.awdpa.ibm.com the lawyers make me say: this posting doesn't represent official ibm policy