Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!helios!inetg1!inetg1!phil From: phil@inetg1.Arco.Com (Phil Meyer) Newsgroups: comp.unix.wizards Subject: Re: TERM and TERMTYPE (wizard level question) Message-ID: <1991Feb19.181838.15460@Arco.COM> Date: 19 Feb 91 18:18:38 GMT References: <22294@hydra.gatech.EDU> <22295@hydra.gatech.EDU> Sender: news@Arco.COM Reply-To: phil@Arco.com Distribution: usa Organization: Arco Oil & Gas Company Lines: 30 In article <22295@hydra.gatech.EDU>, gt2807a@prism.gatech.EDU (Benjamin H. Cowan) writes: > > I'd like to be able to set my PATH to different paths depending on the > machine type I log into. Is there a TERMTYPE shell variable? If not, > how might one go about figuring out which path to set depending on the > 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 Then the path can be set up in a .cshrc like this: set ARCH = `arch` set path = ( all_the_normal_stuff /share/bin/$ARCH ) Not too bad. All of the executables for the different machine/CPU types are in the /share/bin hiarchy. -- +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | Phil Meyer phil@arco.com Work:(214) 754-6805 | +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+