Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!world!daniel From: daniel@world.std.com (Daniel Smith) Newsgroups: comp.unix.admin Subject: Re: what kind of machine am I Message-ID: <1991May16.053128.27074@world.std.com> Date: 16 May 91 05:31:28 GMT References: <858@lhdsy1.chevron.com> <4035@island.COM> <7844@auspex.auspex.com> Distribution: na Organization: The World @ Software Tool & Die Lines: 30 In <7844@auspex.auspex.com> guy@auspex.auspex.com (Guy Harris) writes: >[from my original followup] > >elif [ -f /bin/i486 ] && /bin/i486; then > > echo 486 > >elif [ -f /bin/i586 ] && /bin/i586; then > > echo 586 > Are there *really* commands for "i486" and "i586"? I wouldn't be at all > surprised if System V releases for 386's, 486's, and up weren't Probably not yet, but I decided not to let that get in the way :-) > Also, I think the command for the 286 is called "iapx286" or maybe > "iAPX286". Oh, ok. I was working off of what I was seeing on a Sun, but I did not look closely enough. Interesting that Sun would have a /bin/i386 and a /bin/iAPX286; seems like it should go one way or another. The basic gist of my adapted "arch" script was: find some file unique to a machine and do some guesswork. Hope to see some additions to it so that we can all benefit. Daniel -- daniel@island.com .....Daniel Smith, Island Graphics, (415) 491 0765 x 250(w) daniel@world.std.com ...4000 CivicCenterDrive SanRafael MarinCounty CA 94903 dansmith@well.sf.ca.us .I must write this, or Island will take away my coffee. Could we continue with the petty bickering? I find it most intriguing-Data:TNG