what kind of machine am I
Mark Verber
verber at pacific.mps.ohio-state.edu
Thu May 9 00:06:34 AEST 1991
SunOS and various other flavors of UNIX have the 'arch' command. A
simple solution is to add a version of 'arch' for platforms that
don't have it. For example, I have added /bin/arch to my DECstations
that says simply:
#!/bin/sh
echo "pmax"
exit 0
Ohio State Univ. Computer Science Dept has a file called /etc/sysinfo
that had useful bits of information such are archtype, kernel's name,
derivation of the OS, how to get the hostname, etc. We had a shell
script that would parse this file and set appropriate environment
variables. An example of a /etc/sysinfo:
sun4:/vmunix:bsd4.2:sunos4.1:/bin/hostname
cheers,
mark
More information about the Comp.unix.admin
mailing list