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?
Problem:
/.profile and or /etc/profile not being read from login using ksh when
starting xterm -- works if I telnet in?
Any suggestions?
It is a feature. The .profile file should contain only things that needQuote:>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?
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.]
--
scott
> >Problem:
> >/.profile and or /etc/profile not being read from login using ksh when
> >starting xterm -- works if I telnet in?
> 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.]
> --
1. Not reading /etc/profile or .profile
I just got an RS6000 Model 140,
with AIX 4.3.2.
The default shell is 'ksh'.
However, ksh is not reading either
/etc/profile, or .profile.
Is there something I need to do
to make a login shell read the
profile files?
Thanks.
Rumi
2. Man page for the FVWM Modules in Slackware 3.0...
3. "Screen" prgram: New shells won't read /etc/profile or ~/.profile?
4. File creation slows on long directories
5. How to re-read /etc/profile file at ksh without logout
6. LI at bootup
7. root can not edit /etc/hosts or /etc/profile, can not create directory
9. Telnet login doesn't run /etc/profile or $HOME/.profile
10. /etc/profile or $HOME/profile
11. cmdtool doesn't source /.profile or /etc/profile
12. KDE won't start if my .profile or /etc/profile has stty commands