It is currently Mon, 30 Mar 2020 23:09:40 GMT



 
Author Message
 ksh not reading /.profile or /etc/profile
Platform / OS:
Ultra 2 / Sol 2.6

Problem:
/.profile and or /etc/profile not being read from login using ksh when
starting xterm -- works if I telnet in?

Any suggestions?

s...@mindless.com



 Wed, 19 Dec 2001 03:00:00 GMT   
 ksh not reading /.profile or /etc/profile
In article <377E2B6C.B6B54...@gate.net>,
Scott Anderson  <cron...@gate.net> wrote:

It is a feature. The .profile file should contain only things that need
to be run once per login. One of the lines of .profile often is
ENV=~/.kshrc
export ENV
and then .kshrc is executed for every shell.

You don't say what window environment you are using, but most have to
be told to run .profile. CDE runs .dtprofile which can be made to run
the file .profile. I forget the similar file for openwindows, but you
can do it in .xsession or .xinitrc.

[When you telnet in, ksh is started as -ksh, which is a login shell. By
default, a ksh shell start in an xterm is not a login shell. The
xterm -ls option will make the xterm start ksh as -ksh.]

--
belle...@math.fsu.edu http://www.math.fsu.edu/~bellenot (850)644-7189 (4053fax)



 Thu, 20 Dec 2001 03:00:00 GMT   
 ksh not reading /.profile or /etc/profile
xcellent info -- does the trick just fine -- thank you!

scott

--
Scott D. Anderson * The Stuart News * Special Projects Manager
1939 SE Federal Highway * Stuart, FL 34994
561-221-4120 Voice * 561-221-4194 Fax * 561-219-2664 Home/Voice/Fax
Internal E-Mail * mailto:sander...@stuartnews.com
Internal Web * http://www.tcpalm.com
External E-Mail * mailto:s...@mindless.com
External Web * http://www.gate.net/~crontab



 Thu, 20 Dec 2001 03:00:00 GMT   
 
   [ 3 post ] 

Similar Threads

1. Not reading /etc/profile or .profile

2. How to re-read /etc/profile file at ksh without logout

3. ksh not reading .profile

4. root can not edit /etc/hosts or /etc/profile, can not create directory

5. /etc/profile not read by CDE?

6. Why bash not reading /etc/profile on login?

7. /etc/profile or $HOME/profile

8. cmdtool doesn't source /.profile or /etc/profile

9. KDE won't start if my .profile or /etc/profile has stty commands

10. Telnet login doesn't run /etc/profile or $HOME/.profile


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software