Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!rochester!cornell!calvin.ee.cornell.edu!richard From: richard@calvin.ee.cornell.edu (Richard Brittain - VOS hacker) Newsgroups: comp.unix.wizards Subject: Re: TERM and TERMTYPE (wizard level question) Message-ID: <1991Feb22.032708.18023@calvin.ee.cornell.edu> Date: 22 Feb 91 03:27:08 GMT References: <22294@hydra.gatech.EDU> <22295@hydra.gatech.EDU> <1991Feb19.181838.15460@Arco.COM> Distribution: usa Organization: Cornell Space Plasma Physics Lines: 25 In article <1991Feb19.181838.15460@Arco.COM> phil@Arco.com writes: >In article <22295@hydra.gatech.EDU>, gt2807a@prism.gatech.EDU (Benjamin H. Cowan) writes: >> >> machine type? There are several programs compiled differently to run on >> different types of machines and I would like to be able to put the correct >> directories where the correct programs according to my machine type could >> be found in my PATH. >> > >Here at ARCO, we use the new arch command found on some systems to play games >with the PATH variable. For those systems without arch, we made one. For >example, on our SGI machines, arch is a one liner: >echo sgi > Many systems already have a uname(1) command. Uname -m gives the machine type (VAX, MIPS, hcx, gcx on the set I have to play with), that you can put into $HOSTTYPE and place in your $PATH or whatever. Ultrix didn't have uname(1) but it's only a 5-line program to call uname(2) and print out the results. -- Richard Brittain, School of Elect. Eng., Eng. and Theory Center Cornell university, Ithaca, NY 14853 INTERNET: richard@calvin.ee.cornell.edu UUCP: {uunet,uw-beaver,rochester,cmcl2}!cornell!calvin!richard Brought to you by Super Global Mega Corp .com