Determining machine architecture and ULTRIX version
Alan's Home for Wayward Notes File.
alan at shodha.dec.com
Wed Oct 25 08:08:41 AEST 1989
In article <435 at unmvax.unm.edu>, collins at grumpy.cs.unm.edu (Bill Collins) writes:
> In article <2785 at decuac.DEC.COM> avolio at 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 at turing.cs.unm.edu
--
Alan Rollow alan at nabeth.enet.dec.com
More information about the Comp.unix.ultrix
mailing list