WHATRU(1)
NAME
whatru - host identification script
SYNOPSIS
whatru
DESCRIPTION
is a shell script that attempts by various means to discover
what type of machine it was run on and echoes a string
specific to that type. The string used is consistent with
the MACHINE types known by the SOI Makefiles.
The following machine types are currently recognized:
i386 Intel 80386 (PC) running Sys V
mips DEC RISC (MIPS R3000) running Ultrix
NEXT NeXT running BSD/Mach
sgi SGI supporting MIPS II compiler (R4000) running Irix
sgi4 SGI supporting MIPS IV compiler (R8000) running Irix
sun4 Sun SPARC running SunOS
vax DEC VAX running Ultrix
FILES
/bin/machine, /bin/uname, /usr/local/bin/cpu_type
SEE ALSO
uname(1), cpu_type(1L)
BUGS
The types of machines and operating systems are constantly
changing, and only a few in current use are supported. The
meaning of the reported type changes from time to time as
the local computing environment evolves.
There is insufficient attention to operating system differ-
ences within machine architectures.
For some machines, depends on the existence of the local
binary /usr/local/bin/cpu_type, which extracts a magic
number from a dependable binary file.
AUTHOR
Rick Bogart
HISTORY
SOI Version 0.9: 1994-11-09