TERM and TERMTYPE (wizard level question)

Phil Meyer phil at inetg1.Arco.Com
Wed Feb 20 05:18:38 AEST 1991


In article <22295 at hydra.gatech.EDU>, gt2807a at 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 at arco.com  Work:(214) 754-6805                      |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+



More information about the Comp.unix.wizards mailing list