Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!decwrl!shlump.nac.dec.com!shodha.dec.com!alan From: alan@shodha.dec.com ( Alan's Home for Wayward Notes File.) Newsgroups: comp.unix.ultrix Subject: Re: Determining machine architecture and ULTRIX version Summary: The missing /bin/machine on VAX systems. Message-ID: <459@shodha.dec.com> Date: 24 Oct 89 22:08:41 GMT References: <253@pvi.UUCP> <2785@decuac.DEC.COM> <435@unmvax.unm.edu> Distribution: usa Organization: Digital Equipment Corp. - Colorado Springs, CO. Lines: 32 In article <435@unmvax.unm.edu>, collins@grumpy.cs.unm.edu (Bill Collins) writes: > In article <2785@decuac.DEC.COM> avolio@decuac.dec.com writes: > >You can use the command "machine". > > > >Returns "mips" or "vax". > > > > Ok, I run machine on a DECstation and get: > mips > This is, I guess, another way of saying decstaion. > > Now, on a vax it gives: > machine: Command not found. /bin/machine for the VAX isn't there in V3.0 or V3.1. If you want to create one use: #!/bin/sh echo vax exit 0 It's safest to use something like (for csh): set machine = "vax" if ( -x /bin/machine ) then set machine = `/bin/machine` endif > Bill > collins@turing.cs.unm.edu -- Alan Rollow alan@nabeth.enet.dec.com