/bin/machine will do what you want; it returns either "vax" or "mips". Note that VAX Ultrix 3.0 lacks the command; 3.1 added it. As to what Ultrix version is running, that is a different question. - Jim Gettys