Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!gatech!hao!oddjob!gargoyle!ihnp4!occrsh!occrsh.ATT.COM!tiger.UUCP!authorplaceholder From: rjd@tiger.UUCP Newsgroups: comp.unix.wizards Subject: Re: System wide .login Message-ID: <142700009@tiger.UUCP> Date: Wed, 8-Jul-87 10:04:00 EDT Article-I.D.: tiger.142700009 Posted: Wed Jul 8 10:04:00 1987 Date-Received: Sun, 12-Jul-87 10:21:39 EDT References: <2626@sdsu.UUCP> Lines: 21 Nf-ID: #R:sdsu.UUCP:-262600:tiger.UUCP:142700009:000:856 Nf-From: tiger.UUCP!rjd Jul 8 09:04:00 1987 > I've tried to set up a shell script in the systems /etc/profile > to read user input and set the terminal type accordingly, but I ran into > a problem with the TERM variable being exported to the login shell and > not to the users shell. A system wide .login might run into similar > 'environment' problems. I'm running System V (ver 3.0) on a 3B2-400. > An ATT technician tells me there is a way to fix this. Any ideas > on this or the system wide .login?? > > Andy WingThe users login shell and users shell are the same shell. All you need to do is to remember to export the enviroment variable, e.g.: ---from a sample /etc/profile:----------- /bin/echo "Enter terminal type: \c" read TERM export TERM ----------------------------------------- simple, huh? Randy Davis UUCP:(ihnp4!)3b2fst!randy