Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!hplabs!sdcrdcf!trwrb!felix!zemon From: jpm@lanl.gov (Pat McGee) Newsgroups: comp.unix.ultrix Subject: Shell script to determine CPU Message-ID: <8328@felix.UUCP> Date: Mon, 5-Oct-87 17:37:34 EDT Article-I.D.: felix.8328 Posted: Mon Oct 5 17:37:34 1987 Date-Received: Fri, 9-Oct-87 23:23:08 EDT Sender: zemon@felix.UUCP Lines: 17 Approved: zemon@felix.UUCP (Art Zemon) On Suns, and on Vaxen running Berkeley Unix, there exist programs in /bin to tell a caller if the caller is running on a sun or on a vax (i.e., /bin/vax returns true on vaxes, false on suns, etc.). I'm running on a network that has both Suns and Unix Vaxen, as well as an Ultrix Vax, and I would like my .login to set an environment variable with the name of the CPU (e.g. sun3, sun2, vax). So far, I haven't found any reliable way to do this on Ultrix. I hear that the problem also exists on all other Unix's derived from ATT V5, but have no personal experience to back that up. Is there a solution? Thanks for reading this, and hopefully, thanks for replying. Pat McGee, jpm@lanl.gov, (505) 667-4196